Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wni68-0005sz-4m for pgsql-odbc@arkaria.postgresql.org; Fri, 23 May 2014 05:32:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wni67-0007u0-Ev for pgsql-odbc@arkaria.postgresql.org; Fri, 23 May 2014 05:32:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wni66-0007tt-7Y for pgsql-odbc@postgresql.org; Fri, 23 May 2014 05:32:50 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wni5z-0003mH-Gm for pgsql-odbc@postgresql.org; Fri, 23 May 2014 05:32:48 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4N5WeXx001261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 23 May 2014 01:32:40 -0400 Received: from nb.usersys.redhat.com (unused-4-200.brq.redhat.com [10.34.4.200]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s4N5Wd8v001472 for ; Fri, 23 May 2014 01:32:40 -0400 From: Pavel Raiskup To: PostgreSQL ODBC Subject: Failing tests on Fedora Date: Fri, 23 May 2014 07:32:38 +0200 Message-ID: <2260528.sCvkWcF69Q@nb.usersys.redhat.com> Organization: Red Hat User-Agent: KMail/4.12.5 (Linux/3.14.4-200.fc20.x86_64; KDE/4.12.5; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart1816965.gIBAqrsXGj" Content-Transfer-Encoding: 7Bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --nextPart1816965.gIBAqrsXGj Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hello, I started with running the testsuite recently, thanks a lot for its existence! There are currently 8 fails on my system (Fedora 20 x86_64), I didn't look at all the errors carefully yet as I found in `git show a5e2002a` note about expected failures =E2=80=94 iirc, there is not specified what tests a= re expected to fail. Could we add one additional "EXP_FAIL" state for the testsuite to make that clear? Or at least have a list of expected failures somewhere? (Also instructions how to run single test would be useful in README.txt). Attached files (regression.out, regression.diffs). -- I tried to look at the first FAIL so far. Not sure what is the correct fix-approach (maybe I face some misconfiguration) but VACUUM statement does not seem to be candidate for PREPARE; none of STMT_TYPE_SPECIAL statements actually. So proposed fix is attached together with full compressed "mylog" (+ patch with ignored indentation changes). Pavel --nextPart1816965.gIBAqrsXGj Content-Disposition: attachment; filename="regression.out" Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; name="regression.out" test sampletables ... ok test connect ... ok test stmthandles ... ok test select ... ok test commands ... FAILED test multistmt ... ok test getresult ... ok test prepare ... FAILED test params ... FAILED test notice ... FAILED test arraybinding ... ok test insertreturning ... ok test dataatexecution ... ok test boolsaschar ... ok test cvtnulldate ... FAILED test alter ... ok test quotes ... ok test cursors ... ok test positioned-update ... ok test catalogfunctions ... FAILED test bindcol ... ok test lfconversion ... ok test cte ... ok test deprecated ... FAILED test error-rollback ... ok test diagnostic ... FAILED --nextPart1816965.gIBAqrsXGj Content-Disposition: attachment; filename="regression.diffs" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="regression.diffs" *** /home/praiskup/rh/projects/psqlodbc/test/expected/commands.out 2013-12-13 08:03:35.798378158 +0100 --- /home/praiskup/rh/projects/psqlodbc/test/results/commands.out 2014-05-22 19:01:06.690174158 +0200 *************** *** 2,8 **** connected Testing VACUUM with SQLExecDirect... Testing VACUUM with SQLPrepare/SQLExecute... ! Disabling autocommit... ! Testing VACUUM with SQLExecDirect... ! Testing VACUUM with SQLPrepare/SQLExecute... ! disconnecting --- 2,7 ---- connected Testing VACUUM with SQLExecDirect... Testing VACUUM with SQLPrepare/SQLExecute... ! SQLExecute failed ! HY000=ERROR: syntax error at or near "VACUUM" at character 29; ! Error while executing the query ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/prepare.out 2014-02-17 13:36:45.610763228 +0100 --- /home/praiskup/rh/projects/psqlodbc/test/results/prepare.out 2014-05-22 19:01:11.051205906 +0200 *************** *** 5,117 **** 2 bar Result set: 3 foobar ! inserting bytea values... 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 done! ! Now reading them back... ! Result set: ! 4000 4000 ! 4001 4001 ! 4002 4002 ! 4003 4003 ! 4004 4004 ! 4005 4005 ! 4006 4006 ! 4007 4007 ! 4008 4008 ! 4009 4009 ! 4010 4010 ! 4011 4011 ! 4012 4012 ! 4013 4013 ! 4014 4014 ! 4015 4015 ! 4016 4016 ! 4017 4017 ! 4018 4018 ! 4019 4019 ! 4020 4020 ! 4021 4021 ! 4022 4022 ! 4023 4023 ! 4024 4024 ! 4025 4025 ! 4026 4026 ! 4027 4027 ! 4028 4028 ! 4029 4029 ! 4030 4030 ! 4031 4031 ! 4032 4032 ! 4033 4033 ! 4034 4034 ! 4035 4035 ! 4036 4036 ! 4037 4037 ! 4038 4038 ! 4039 4039 ! 4040 4040 ! 4041 4041 ! 4042 4042 ! 4043 4043 ! 4044 4044 ! 4045 4045 ! 4046 4046 ! 4047 4047 ! 4048 4048 ! 4049 4049 ! 4050 4050 ! 4051 4051 ! 4052 4052 ! 4053 4053 ! 4054 4054 ! 4055 4055 ! 4056 4056 ! 4057 4057 ! 4058 4058 ! 4059 4059 ! 4060 4060 ! 4061 4061 ! 4062 4062 ! 4063 4063 ! 4064 4064 ! 4065 4065 ! 4066 4066 ! 4067 4067 ! 4068 4068 ! 4069 4069 ! 4070 4070 ! 4071 4071 ! 4072 4072 ! 4073 4073 ! 4074 4074 ! 4075 4075 ! 4076 4076 ! 4077 4077 ! 4078 4078 ! 4079 4079 ! 4080 4080 ! 4081 4081 ! 4082 4082 ! 4083 4083 ! 4084 4084 ! 4085 4085 ! 4086 4086 ! 4087 4087 ! 4088 4088 ! 4089 4089 ! 4090 4090 ! 4091 4091 ! 4092 4092 ! 4093 4093 ! 4094 4094 ! 4095 4095 ! 4096 4096 ! 4097 4097 ! 4098 4098 ! 4099 4099 ! Result set: ! 1 @ 1 day one day ! 2 @ 10 secs ten secs ! # of result cols: 2 ! Result set: ! 2 bar ! disconnecting --- 5,8 ---- 2 bar Result set: 3 foobar ! inserting bytea values... 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 \ No newline at end of file ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/params.out 2013-12-13 08:03:35.799378164 +0100 --- /home/praiskup/rh/projects/psqlodbc/test/results/params.out 2014-05-22 19:01:16.254243759 +0200 *************** *** 2,8 **** connected # of result cols: 2 Result set: - 1 0102030405060708 Testing SQLBindParameter with SQLExecDirect... Result set: --- 2,7 ---- *************** *** 10,17 **** bar Testing SQLDescribeParam... ! Param 1: type INTEGER; size 10; dec digits -1; nullable ! # of result cols: 2 ! Result set: ! 3 foobar ! disconnecting --- 9,13 ---- bar Testing SQLDescribeParam... ! SQLDescribeParams failed ! IM001=[unixODBC][Driver Manager]Driver does not support this function ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/notice.out 2013-12-13 08:03:35.799378164 +0100 --- /home/praiskup/rh/projects/psqlodbc/test/results/notice.out 2014-05-22 19:01:16.366244575 +0200 *************** *** 1,7 **** \! ./src/notice-test connected got SUCCESS_WITH_INFO ! 00000=NOTICE: test notice: foo got SUCCESS_WITH_INFO 00000= disconnecting --- 1,7 ---- \! ./src/notice-test connected got SUCCESS_WITH_INFO ! 00000=NOTICE: test notice: foo got SUCCESS_WITH_INFO 00000= disconnecting ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/cvtnulldate.out 2013-12-13 08:03:35.799378164 +0100 --- /home/praiskup/rh/projects/psqlodbc/test/results/cvtnulldate.out 2014-05-22 19:01:20.562275081 +0200 *************** *** 1,5 **** \! ./src/cvtnulldate-test connected ! Result set: ! 1 ! disconnecting --- 1,5 ---- \! ./src/cvtnulldate-test connected ! SQLExecDirect failed ! HY000=ERROR: invalid input syntax for type date: "" at character 30; ! Error while executing the query ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/catalogfunctions.out 2014-05-20 14:09:21.105643253 +0200 --- /home/praiskup/rh/projects/psqlodbc/test/results/catalogfunctions.out 2014-05-22 19:01:21.385281062 +0200 *************** *** 119,144 **** Check for SQLForeignKeys Result set metadata: pktable_cat: VARCHAR(64) digits: 0, nullable ! pktable_schem: VARCHAR(64) digits: 0, not nullable ! pktable_name: VARCHAR(64) digits: 0, not nullable ! pkcolumn_name: VARCHAR(64) digits: 0, not nullable fktable_cat: VARCHAR(64) digits: 0, nullable ! fktable_schem: VARCHAR(64) digits: 0, not nullable ! fktable_name: VARCHAR(64) digits: 0, not nullable ! fkcolumn_name: VARCHAR(64) digits: 0, not nullable key_seq: SMALLINT(5) digits: 0, nullable update_rule: SMALLINT(5) digits: 0, nullable delete_rule: SMALLINT(5) digits: 0, nullable ! fk_name: VARCHAR(64) digits: 0, not nullable ! pk_name: VARCHAR(64) digits: 0, not nullable deferrablity: SMALLINT(5) digits: 0, nullable Result set: contrib_regression public testtab1 id contrib_regression public testtab_fk id 1 3 3 testtab_fk_id_fkey testtab1_pkey 7 Check for SQLProcedures Result set metadata: procedure_cat: VARCHAR(255) digits: 0, nullable ! procedure_schem: VARCHAR(64) digits: 0, not nullable ! procedure_name: VARCHAR(64) digits: 0, not nullable num_input_params: VARCHAR(255) digits: 0, nullable num_output_params: VARCHAR(255) digits: 0, nullable num_result_sets: VARCHAR(255) digits: 0, nullable --- 119,144 ---- Check for SQLForeignKeys Result set metadata: pktable_cat: VARCHAR(64) digits: 0, nullable ! pktable_schem: VARCHAR(64) digits: 0, nullable ! pktable_name: VARCHAR(64) digits: 0, nullable ! pkcolumn_name: VARCHAR(64) digits: 0, nullable fktable_cat: VARCHAR(64) digits: 0, nullable ! fktable_schem: VARCHAR(64) digits: 0, nullable ! fktable_name: VARCHAR(64) digits: 0, nullable ! fkcolumn_name: VARCHAR(64) digits: 0, nullable key_seq: SMALLINT(5) digits: 0, nullable update_rule: SMALLINT(5) digits: 0, nullable delete_rule: SMALLINT(5) digits: 0, nullable ! fk_name: VARCHAR(64) digits: 0, nullable ! pk_name: VARCHAR(64) digits: 0, nullable deferrablity: SMALLINT(5) digits: 0, nullable Result set: contrib_regression public testtab1 id contrib_regression public testtab_fk id 1 3 3 testtab_fk_id_fkey testtab1_pkey 7 Check for SQLProcedures Result set metadata: procedure_cat: VARCHAR(255) digits: 0, nullable ! procedure_schem: VARCHAR(64) digits: 0, nullable ! procedure_name: VARCHAR(64) digits: 0, nullable num_input_params: VARCHAR(255) digits: 0, nullable num_output_params: VARCHAR(255) digits: 0, nullable num_result_sets: VARCHAR(255) digits: 0, nullable ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/deprecated.out 2014-04-02 08:37:57.065266936 +0200 --- /home/praiskup/rh/projects/psqlodbc/test/results/deprecated.out 2014-05-22 19:01:21.702283366 +0200 *************** *** 6,12 **** Check for SQLGetConnectOption Access type is: read-write Check for SQLError ! Error check: ERROR: relation "table_not_here" does not exist; Error while executing the query Check for SQLSetParam Result set: --- 6,12 ---- Check for SQLGetConnectOption Access type is: read-write Check for SQLError ! Error check: ERROR: relation "table_not_here" does not exist at character 13; Error while executing the query Check for SQLSetParam Result set: ====================================================================== *** /home/praiskup/rh/projects/psqlodbc/test/expected/diagnostic.out 2014-04-23 09:16:29.679056999 +0200 --- /home/praiskup/rh/projects/psqlodbc/test/results/diagnostic.out 2014-05-22 19:01:21.850284442 +0200 *************** *** 1,15 **** \! ./src/diagnostic-test connected SQLExecDirect ! 42601=ERROR: syntax error at or near "broken"; Error while executing the query get same message again ! 42601=ERROR: syntax error at or near "broken"; Error while executing the query killing connection... ! 57P01=FATAL: terminating connection due to administrator command; Error while executing the query SQLGetDiagRec on connection says: ! 57P01=FATAL: terminating connection due to administrator command SQLGetDiagRec called again: ! 57P01=FATAL: terminating connection due to administrator command --- 1,15 ---- \! ./src/diagnostic-test connected SQLExecDirect ! HY000=ERROR: syntax error at or near "broken" at character 1; Error while executing the query get same message again ! HY000=ERROR: syntax error at or near "broken" at character 1; Error while executing the query killing connection... ! HY000=FATAL: terminating connection due to administrator command; Error while executing the query SQLGetDiagRec on connection says: ! HY000=FATAL: terminating connection due to administrator command SQLGetDiagRec called again: ! HY000=FATAL: terminating connection due to administrator command ====================================================================== --nextPart1816965.gIBAqrsXGj Content-Disposition: attachment; filename="mylog_praiskup6591.log.xz" Content-Transfer-Encoding: base64 Content-Type: application/x-xz; name="mylog_praiskup6591.log.xz" /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4FsaDQhdAC2MQoMhlVq8KujATydv vWxxDJ3ZxVN/PMAThzxsGmaPe5z/YvQfyIaNsXPB99AkMtJdPkUH8iaao5Up 6Ayy60IVwHLc615WXseUBagY3jgHY8hivf11etq0Ro0627Ti2aU4T5psqn6q jdSoHRYTzwJb07qFO9y95AaHlwJU+gzJrEEqWdpy2kL4crOYDoBAPB3ez3Ha KALoYqRrHIywkDk0rVYlv1MFP7y4gxiB7MPjYQxU0EV8/fXI31C2WipM7Gmg P88RSti5WzkElYXYnyiMoC+D87I45hPnAda80B/VNuq/QXKBO8TH2Bor33W8 FvL76Vd8NKaV95IEQUGMi/bQOtAVOFv2wcOKEsAUT3Z1mLMc16LaDPz+ZWRw AzayFPWQR9KejDKoslSwpFXD7idi5D7sUHPGKTrgYoqA2Hyja0pjaTFZ87kV JG6AXvWDZU7E+sUzUwYMukgmD4GPICHohNSi3Wzcsl4sD1oAcB1yCjk5Bc+D oRthLQ5DtAUDhDmhNIofTIZiBnOHlxmEH6kIYWaDRtE//bdlp5z0G8mJSOfW P2cPmbZmnJ/qHPliREI+GXnBq8174lSVZ7NuSH7JFk9YFjOEgFvLWtP6iK6u B+pEFZfp7t3OYgPbysoH3W3DlBYXix9Zt0e8StevBqP9t5S09U+3JpkJgqPE 1rvuz5kIZ11bFlIALPB8LBFzcQUOdgm8FKYLmz1lHScUt0iBy4uBcFtk58Mb ZylsBRNqk1GyJ7AeSCAWTI7WPhJ/rSeZREOKcFBK8qrWWMIbqy6IU2JPtn+t 1bNTgragYE32CdckQRqXngItGcHzxYqO8Zu8hHpnmsmzJBgIKcvlMTO44Ddo Ph68irWgpcn653j6J3qjvUTTqvwfj61/0Iw/zQma8+XXYFG6K6m9Rc7MkkhJ pY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UX4bDl9Vr9pg3sWFXEkabRJMSa7sz6 4WC+0Msnj9tEaub5g50g4O2lTo46ckwBz+FHx1CiiW/ZJbzoF+i70mN7A36/ DHfUk8oqwW5VVJ4C8yIioPdgvoT2SCwGkKpZAxSVOM+OsWK8vhzH4bGFUacp k2wOhVD74gWQ0SXAl55OwW3wiqhVlusmVxMUcrCQyUYTqTS7fAT3HoZLr2Pg OJKxjIDI8TXucZQZJV1rjmOywkZp5H2TLfF9htEKO0bcgJTTYr3/eq4zfjZf fzwxkN/XMoer9CQ58rNh6E/PVW3FI3bUJxWgwkV0+UiUS3etAAAXSh3Zk89k bwABpBqbtgEAQN0B2bHEZ/sCAAAAAARZWg== --nextPart1816965.gIBAqrsXGj Content-Disposition: attachment; filename="patch-ignored-space.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="patch-ignored-space.patch" commit 1260947446ed6d5629dd8164640bf156c7fa7e5b (HEAD, praiskup_testsuite) Author: Pavel Raiskup AuthorDate: Thu May 22 18:34:44 2014 +0200 Commit: Pavel Raiskup CommitDate: Fri May 23 07:28:51 2014 +0200 Do not wrap STMT_TYPE_SPECIAL statement by PREPARE Having UseServerSidePrepare=1 (default) caused failing the commands-tests.c testcase. Seems like inquireHowToPrepare function should detect STMT_TYPE_SPECIAL statements and mark them as PREPARE_BY_THE_DRIVER (causes HowToPrepareBeforeExec return doNothing). Adjust also corresponding testcase to test having UseServerSidePrepare set explicitly to 0 and 1. diff --git a/execute.c b/execute.c index 1cc4f04..623a598 100644 --- a/execute.c +++ b/execute.c @@ -214,6 +214,7 @@ inquireHowToPrepare(const StatementClass *stmt) conn = SC_get_conn(stmt); ci = &(conn->connInfo); if (!ci->use_server_side_prepare || + stmt->statement_type == STMT_TYPE_SPECIAL || PG_VERSION_LT(conn, 7.3)) { /* Do prepare operations by the driver itself */ diff --git a/test/expected/commands.out b/test/expected/commands.out index 58058c3..d1f60bf 100644 --- a/test/expected/commands.out +++ b/test/expected/commands.out @@ -1,4 +1,21 @@ \! ./src/commands-test +~> Running with UseServerSidePrepare=0 +connected +Testing VACUUM with SQLExecDirect... +Testing VACUUM with SQLPrepare/SQLExecute... +Disabling autocommit... +Testing VACUUM with SQLExecDirect... +Testing VACUUM with SQLPrepare/SQLExecute... +disconnecting +~> Running with UseServerSidePrepare=1 +connected +Testing VACUUM with SQLExecDirect... +Testing VACUUM with SQLPrepare/SQLExecute... +Disabling autocommit... +Testing VACUUM with SQLExecDirect... +Testing VACUUM with SQLPrepare/SQLExecute... +disconnecting +~> Running with NULL (default) connected Testing VACUUM with SQLExecDirect... Testing VACUUM with SQLPrepare/SQLExecute... diff --git a/test/src/commands-test.c b/test/src/commands-test.c index 96ca7ad..0bc36df 100644 --- a/test/src/commands-test.c +++ b/test/src/commands-test.c @@ -12,7 +12,18 @@ int main(int argc, char **argv) char *sqlend; int i; - test_connect(); + const char *conn_strings[] = { + "UseServerSidePrepare=0", + "UseServerSidePrepare=1", + NULL, + }; + + const char **connstr; + + for (connstr = conn_strings; ; connstr++) { + printf("~> Running with %s\n", *connstr ? *connstr : "NULL (default)"); + test_connect_ext(*connstr); + rc = SQLAllocHandle(SQL_HANDLE_STMT, conn, &hstmt); if (!SQL_SUCCEEDED(rc)) @@ -78,4 +89,8 @@ int main(int argc, char **argv) /* Clean up */ test_disconnect(); + + if (!*connstr) + break; + } } diff --git a/test/src/common.c b/test/src/common.c index 2423ad0..70a79bd 100644 --- a/test/src/common.c +++ b/test/src/common.c @@ -24,7 +24,7 @@ print_diag(char *msg, SQLSMALLINT htype, SQLHANDLE handle) } void -test_connect_ext(char *extraparams) +test_connect_ext(const char *extraparams) { SQLRETURN ret; SQLCHAR str[1024]; diff --git a/test/src/common.h b/test/src/common.h index 34ad156..e63eada 100644 --- a/test/src/common.h +++ b/test/src/common.h @@ -24,7 +24,7 @@ extern SQLHDBC conn; } extern void print_diag(char *msg, SQLSMALLINT htype, SQLHANDLE handle); -extern void test_connect_ext(char *extraparams); +extern void test_connect_ext(const char *extraparams); extern void test_connect(void); extern void test_disconnect(void); extern void print_result_meta_series(HSTMT hstmt, --nextPart1816965.gIBAqrsXGj Content-Disposition: attachment; filename="0001-Do-not-wrap-STMT_TYPE_SPECIAL-statement-by-PREPARE.patch.xz" Content-Transfer-Encoding: base64 Content-Type: application/x-xz; name="0001-Do-not-wrap-STMT_TYPE_SPECIAL-statement-by-PREPARE.patch.xz" /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4CMrCCtdACMcieb23wp13+yk3DuB z7Uct+4tVlkKZ56lbjRSu0gVN7iFwUUUhIirjd1fxWYChZecA44zHQRjyYJE 9daTcmLv4g1G4GxrpIRfdOjaJ24xntC/7iYm436vRYgTMxYmKSfnRM+TCZbK q2I6SdCIURk0ikRmalU67yqaNFtlugaUThg6DClHx2zuxrzsrZRjVgIKO3q1 bluegzL+dR4i0mas1R/jb9jpDkQhmzjtmTUGPSr5HX50XxgfngRqLht4OruW J5znfIC74wW9eKMAEHjzeg3VHB6yqUaKMsDimiVxkFIMjLey4ryf6oSfP2Ed 7Jofjhlfw3/wEL6Grx7oPXKnlW468j58HxSlu029/QCoZYjsIVhjL3q+gl/b 4/lZbABWU8/fPBX8mHtQlhu0ePN33J5xYF9Z8PO43IhUufPQrmgNlRfivMRE B5Jizv86QApQMIyTBuEyPsmoLcv5ZN9+nQGceW/2MQnoO7B6QubnS9dyJ7XJ FCRALE4H/TnCqr7G/rlPhn2ayBt1PnCW6doC6sCA3LlcVxzBrsdRkB6y7Cbk 0cGQWLVRdedgErulmoqsuOwcqaLKT52TyRXnLiDMxcLLlx6gjCvMKdJMMdwN i8YvC32Z7YCG4JFO01yNWh4Q6N19n49rQV9NXl1XBwywyARuXCgkCCoiJiVx va6/AaaxvmRjvPbOLgadMGIRmvmDE9noF5vSKw41eat6PBcO7o9GGT9pR8Y9 FMRdkWz0Zs+1JAGgYsbZHdX2/0/UlDFN+DZ5aY+ranMwDm56bCnUqR4fhLYZ bTeAG4EF0auGzhTChwVwO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Ou iQv1opv/Xhxlq3726AqzZChm4Py6eqbbWDV3YamT2jY8a2d2S8LcDzOiE/lb wLX3fp+dNYW4owJ7llEmiNjxkpZAAiHAl9w4pfMUWsB8fgOP7HRi5IMznBn7 hrGORWslw/am/YgE9n8FB1JfIOK0QgIJUZdDvMLkoC2tu5MGk/0tv+skNbZL HP/ng7mBqhe8gNPxSGkh24vP7G0qECM0RAUfhvvXr7lv7lMgTuJlN0gOt89H UOodCU4VMJN0Mx2OgnwuqZExDweHOCZoXXHzgp7g0sMgRmRmfw1dfEgW+mCP FtRhmlmXaRUYbw4FaVgNpQWQTsLZumD4aF/7IxB5XrGKU2WMApT9zYVfkzMA UPD6B6rREnaAAs47jDoQlHdYGSwlJbqx+bEtUv8oD6+zX8dkJLoat+xIrC4/ 0fqoMtxb79D73LMM75W75+i14ryniJuBY9aMNqELgRmVH7oYrqwOSB9a9gMu BQClQ1r84BMvOXrqhnrRn1GzfVi2REU53Tqzt62wkPlRomHMefYXFPyHqcCT Cusdn0YhQSTpHEOEFExSRnXTaLimYw6Yl6U1mp9JLluPkwCdDq1xQQ2A1OQ3 6AG5dOzMBhP7BJO2xpsJsMiVlvXZ8uIC0qrOdDmH0rUUKfbWaipcNZ9+a89G XMrxHVKM9OnVk7w3zArRPU+jJOXrCqdnPQoEgDuj90PXo0mPR2zdCF/Rkt3M 0ogJ0YJJevVDTT/89g28IaV2QjA5bbjkB/0ovuSaCKuYZuTTf2nMdi277H2b 52GhcIqwXB6uY/wg6FW2YWNK/Ii1QqliYw2ot2X8H+RYXtDjh0SyKwqCxGmy Ag0feC7Nv9GKlUKoifoJdQSgX6yKyUquCc8soBe5ldk8upc6O6b3E3BMmJSN mV4N9fE0PAAA4Gta7Ay2FKIAAccQrEYAAJw68tyxxGf7AgAAAAAEWVo= --nextPart1816965.gIBAqrsXGj Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc --nextPart1816965.gIBAqrsXGj--