Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIiZc-0003eu-MN for pgsql-odbc@arkaria.postgresql.org; Thu, 21 Mar 2013 16:42:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UIiZc-0001Yi-0Y for pgsql-odbc@arkaria.postgresql.org; Thu, 21 Mar 2013 16:42:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIiZa-0001Vz-PR for pgsql-odbc@postgresql.org; Thu, 21 Mar 2013 16:42:38 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UIiZT-0006vT-0c for pgsql-odbc@postgresql.org; Thu, 21 Mar 2013 16:42:37 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 0C007A2DA2; Thu, 21 Mar 2013 09:42:28 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 0792FB050B; Thu, 21 Mar 2013 09:42:28 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 0C293C152B; Thu, 21 Mar 2013 09:42:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x2PevX5oBFgV; Thu, 21 Mar 2013 09:42:25 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id CEED0C1518; Thu, 21 Mar 2013 09:42:25 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Thu, 21 Mar 2013 09:42:24 -0700 (PDT) Message-ID: <514B3870.2060208@vmware.com> Date: Thu, 21 Mar 2013 18:42:24 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Hiroshi Inoue CC: pgsql-odbc@postgresql.org Subject: Re: SQLExecute returns 0 rows with BoolsAsChar=1 References: <51479445.7020905@vmware.com> <514AFABC.7000808@tpf.co.jp> In-Reply-To: <514AFABC.7000808@tpf.co.jp> Content-Type: multipart/mixed; boundary="------------040808010204050507010005" X-Pg-Spam-Score: -9.4 (---------) 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. --------------040808010204050507010005 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 21.03.2013 14:19, Hiroshi Inoue wrote: > (2013/03/19 7:25), Heikki Linnakangas wrote: >> If you SQLPrepare a query, and bind a VARCHAR parameter with column_size >> of exactly 5, and you have BoolsAsChar=1 (which is the default), the >> subsequent SQLExecute will return 0 rows. > > Hmm I can't reproduce it here. > Could you send me the Mylog output of the case? Sure. Here's a test program to reproduce it, and the mylog output from running it. It should print: got result: foobar But due to the bug, you get: SQLFetch returned SQL_NO_DATA - Heikki --------------040808010204050507010005 Content-Type: text/x-csrc; name="colsize5.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="colsize5.c" #include #include #include #include static SQLHENV env; static SQLHDBC conn; #define CHECK_STMT_RESULT(rc, msg, hstmt) \ if (!SQL_SUCCEEDED(rc)) \ { \ print_diag(msg, SQL_HANDLE_STMT, hstmt); \ exit(1); \ } static void print_diag(char *msg, SQLSMALLINT htype, SQLHANDLE handle) { char sqlstate[32]; char message[1000]; SQLINTEGER nativeerror; SQLSMALLINT textlen; SQLRETURN ret; if (msg) printf("%s\n", msg); ret = SQLGetDiagRec(htype, handle, 1, sqlstate, &nativeerror, message, 256, &textlen); if (ret != SQL_ERROR) printf("%s=%s\n", (CHAR *)sqlstate, (CHAR *)message); } static void test_connect(void) { SQLRETURN ret; SQLCHAR str[1024]; SQLSMALLINT strl; SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &env); SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, 0); SQLAllocHandle(SQL_HANDLE_DBC, env, &conn); ret = SQLDriverConnect(conn, NULL, "DSN=psqlodbc_test_dsn;%s", SQL_NTS, str, sizeof(str), &strl, SQL_DRIVER_COMPLETE); if (SQL_SUCCEEDED(ret)) { printf("connected\n"); } else { print_diag("SQLDriverConnect failed.", SQL_HANDLE_DBC, conn); exit(1); } } int main(int argc, char **argv) { SQLRETURN rc; HSTMT hstmt = SQL_NULL_HSTMT; char *param1; SQLLEN cbParam1; long longparam; SQL_INTERVAL_STRUCT intervalparam; SQLSMALLINT colcount; char buf[40]; test_connect(); rc = SQLAllocStmt(conn, &hstmt); if (!SQL_SUCCEEDED(rc)) { print_diag("failed to allocate stmt handle", SQL_HANDLE_DBC, conn); exit(1); } /**** * With BoolsAsChar=1, a varchar param with column_size=5 forces a * server-side Prepare. So test that. */ /* bind param */ param1 = "foo"; cbParam1 = SQL_NTS; rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, /* value type */ SQL_VARCHAR, /* param type */ 5, /* column size. 5 Triggers special * behavior with BoolsAsChar=1 */ 0, /* dec digits */ param1, /* param value ptr */ 0, /* buffer len */ &cbParam1 /* StrLen_or_IndPtr */); CHECK_STMT_RESULT(rc, "SQLBindParameter failed", hstmt); /* Execute a simple query that returns a single value */ rc = SQLExecDirect(hstmt, (SQLCHAR *) "SELECT 'foobar' WHERE 'foo' = ?", SQL_NTS); CHECK_STMT_RESULT(rc, "SQLExecDirect failed", hstmt); /* Fetch result */ rc = SQLFetch(hstmt); if (rc == SQL_NO_DATA) { printf("SQLFetch returned SQL_NO_DATA\n"); exit(1); } /* Should return a single value. Print it. */ rc = SQLGetData(hstmt,1, SQL_C_CHAR, buf, sizeof(buf), NULL); if (!SQL_SUCCEEDED(rc)) { print_diag("SQLGetData failed", SQL_HANDLE_STMT, hstmt); exit(1); } printf("got result: %s\n", buf); return 0; } --------------040808010204050507010005 Content-Type: text/x-log; name="mylog_heikki23223.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mylog_heikki23223.log" [139958134339328]calling getDSNdefaults [139958134339328]CC_connect: entering... [139958134339328]sslmode=disable [139958134339328]LIBPQ_CC_connect: entering... [139958134339328]Driver Version='09.01.0200,201208160000' [139958134339328]LIBPQ_CC_connect: DSN = 'psqlodbc_test_dsn', server = 'localhost', port = '5432', database = 'contrib_regression', username = '', password='xxxxx' [139958134339328]connecting to the database using localhost as the server [139958134339328]sizeof connectdb option = 76 [139958134339328]libpq connection to the database succeeded. [139958134339328]protocol=7.4 [139958134339328]Server version=9.3.0 [139958134339328]PQuser=heikki [139958134339328]LIBPQ_connect: retuning 1 [139958134339328]CC_setenv: entering... [139958134339328]PGAPI_AllocStmt: entering... [139958134339328]**** PGAPI_AllocStmt: hdbc = 0x13b20e0, stmt = 0x13c2cb0 [139958134339328]CC_add_statement: self=0x13b20e0, stmt=0x13c2cb0 [139958134339328]PGAPI_ExecDirect: entering...0 [139958134339328]SC_recycle_statement: self= 0x13c2cb0 [139958134339328]**** PGAPI_ExecDirect: hstmt=0x13c2cb0, statement='set DateStyle to 'ISO'' [139958134339328]PGAPI_ExecDirect: calling PGAPI_Execute... [139958134339328]PGAPI_Execute: entering...0 [139958134339328]PGAPI_Execute: clear errors... [139958134339328]PGAPI_NumParams: entering... [139958134339328]SC_scanQueryAndCountParams: entering... [139958134339328]prepareParameters was not called, prepare state:2 [139958134339328]SC_recycle_statement: self= 0x13c2cb0 [139958134339328]Exec_with_parameters_resolved: copying statement params: trans_status=1, len=22, stmt='set DateStyle to 'ISO'' [139958134339328] stmt_with_params = 'set DateStyle to 'ISO'' [139958134339328]about to begin SC_execute [139958134339328] it's NOT a select statement: stmt=0x13c2cb0 [139958134339328]CC_send_query: conn=0x13b20e0, query='set DateStyle to 'ISO'' [139958134339328]send_query: done sending query 28bytes flushed [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 39, global_socket_buffersize=4096 [139958134339328]send_query: got id = 'S' [139958134339328]send_query: got id = 'C' [139958134339328]send_query: ok - 'C' - SET [139958134339328]send_query: setting cmdbuffer = 'SET' [139958134339328]send_query: returning res = 0x13c2850 [139958134339328]send_query: got id = 'Z' [139958134339328]SC_set_Result(13c2cb0, 13c2850)[139958134339328]QResult: enter DESTRUCTOR [139958134339328]retval=0 [139958134339328]PGAPI_ExecDirect: returned 0 from PGAPI_Execute [139958134339328]CC_setenv: result 0, status 1 from set DateStyle [139958134339328]PGAPI_ExecDirect: entering...0 [139958134339328]SC_recycle_statement: self= 0x13c2cb0 [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: in QR_close_result [139958134339328]QResult: free memory in, fcount=0 [139958134339328]QResult: free memory out [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: exit close_result [139958134339328]QResult: exit DESTRUCTOR [139958134339328]SC_init_Result(13c2cb0)[139958134339328]PDATA_free_params: ENTER, self=0x13c2f90 [139958134339328]**** PGAPI_ExecDirect: hstmt=0x13c2cb0, statement='set extra_float_digits to 2' [139958134339328]PGAPI_ExecDirect: calling PGAPI_Execute... [139958134339328]PGAPI_Execute: entering...0 [139958134339328]PGAPI_Execute: clear errors... [139958134339328]PGAPI_NumParams: entering... [139958134339328]SC_scanQueryAndCountParams: entering... [139958134339328]prepareParameters was not called, prepare state:2 [139958134339328]SC_recycle_statement: self= 0x13c2cb0 [139958134339328]PDATA_free_params: ENTER, self=0x13c2f90 [139958134339328]Exec_with_parameters_resolved: copying statement params: trans_status=1, len=27, stmt='set extra_float_digits to 2' [139958134339328] stmt_with_params = 'set extra_float_digits to 2' [139958134339328]about to begin SC_execute [139958134339328] it's NOT a select statement: stmt=0x13c2cb0 [139958134339328]CC_send_query: conn=0x13b20e0, query='set extra_float_digits to 2' [139958134339328]send_query: done sending query 33bytes flushed [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 15, global_socket_buffersize=4096 [139958134339328]send_query: got id = 'C' [139958134339328]send_query: ok - 'C' - SET [139958134339328]send_query: setting cmdbuffer = 'SET' [139958134339328]send_query: returning res = 0x13c2850 [139958134339328]send_query: got id = 'Z' [139958134339328]SC_set_Result(13c2cb0, 13c2850)[139958134339328]QResult: enter DESTRUCTOR [139958134339328]retval=0 [139958134339328]PGAPI_ExecDirect: returned 0 from PGAPI_Execute [139958134339328]CC_setenv: result 0, status 1 from set extra_float_digits [139958134339328]PGAPI_FreeStmt: entering...hstmt=0x13c2cb0, fOption=1 [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: in QR_close_result [139958134339328]QResult: free memory in, fcount=0 [139958134339328]QResult: free memory out [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: exit close_result [139958134339328]QResult: exit DESTRUCTOR [139958134339328]SC_init_Result(13c2cb0)[139958134339328]SC_Destructor: self=0x13c2cb0, self->result=(nil), self->hdbc=0x13b20e0 [139958134339328]APD_free_params: ENTER, self=0x13c2e58 [139958134339328]IPD_free_params: ENTER, self=0x13c2ec8 [139958134339328]PDATA_free_params: ENTER, self=0x13c2f90 [139958134339328]SC_Destructor: EXIT [139958134339328]CC_send_settings: entering... [139958134339328]PGAPI_AllocStmt: entering... [139958134339328]**** PGAPI_AllocStmt: hdbc = 0x13b20e0, stmt = 0x13c2cb0 [139958134339328]CC_add_statement: self=0x13b20e0, stmt=0x13c2cb0 [139958134339328]PGAPI_FreeStmt: entering...hstmt=0x13c2cb0, fOption=1 [139958134339328]QResult: enter DESTRUCTOR [139958134339328]SC_init_Result(13c2cb0)[139958134339328]SC_Destructor: self=0x13c2cb0, self->result=(nil), self->hdbc=0x13b20e0 [139958134339328]APD_free_params: ENTER, self=0x13c2e58 [139958134339328]IPD_free_params: ENTER, self=0x13c2ec8 [139958134339328]PDATA_free_params: ENTER, self=0x13c2f90 [139958134339328]SC_Destructor: EXIT [139958134339328]CC_lookup_lo: entering... [139958134339328]CC_send_query: conn=0x13b20e0, query='select oid, typbasetype from pg_type where typname = 'lo'' [139958134339328]send_query: done sending query 63bytes flushed [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 79, global_socket_buffersize=4096 [139958134339328]send_query: got id = 'T' [139958134339328]QR_fetch_tuples: cursor = '', self->cursor=(nil) [139958134339328]num_fields = 2 [139958134339328]READING ATTTYPMOD [139958134339328]CI_read_fields: fieldname='oid', adtid=26, adtsize=4, atttypmod=-1 (rel,att)=(1247,65534) [139958134339328]READING ATTTYPMOD [139958134339328]CI_read_fields: fieldname='typbasetype', adtid=26, adtsize=4, atttypmod=-1 (rel,att)=(1247,24) [139958134339328]QR_fetch_tuples: past CI_read_fields: num_fields = 2 [139958134339328]MALLOC: tuple_size = 100, size = 3200 [139958134339328]QR_next_tuple: inTuples = true, falling through: fcount = 0, fetch_number = 0 [139958134339328]end of tuple list -- setting inUse to false: this = 0x13c2850 SELECT 0 [139958134339328]_QR_next_tuple: 'C' fetch_total = 0 & this_fetch = 0 [139958134339328]QR_next_tuple: backend_rows < CACHE_SIZE: brows = 0, cache_size = 0 [139958134339328]QR_next_tuple: reached eof now [139958134339328]_QR_next_tuple: 'C': DONE (fcount == 0) [139958134339328]send_query: got id = 'Z' [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: in QR_close_result [139958134339328]QResult: free memory in, fcount=0 [139958134339328]QResult: free memory out [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: exit close_result [139958134339328]QResult: exit DESTRUCTOR [139958134339328]Got the large object oid: -999 [139958134339328]CC_lookup_characterset: entering... [139958134339328]CC_send_query: conn=0x13b20e0, query='select pg_client_encoding()' [139958134339328]send_query: done sending query 33bytes flushed [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 79, global_socket_buffersize=4096 [139958134339328]send_query: got id = 'T' [139958134339328]QR_fetch_tuples: cursor = '', self->cursor=(nil) [139958134339328]num_fields = 1 [139958134339328]READING ATTTYPMOD [139958134339328]CI_read_fields: fieldname='pg_client_encoding', adtid=19, adtsize=64, atttypmod=-1 (rel,att)=(0,0) [139958134339328]QR_fetch_tuples: past CI_read_fields: num_fields = 1 [139958134339328]MALLOC: tuple_size = 100, size = 1600 [139958134339328]QR_next_tuple: inTuples = true, falling through: fcount = 0, fetch_number = 0 [139958134339328]qresult: len=4, buffer='UTF8' [139958134339328]end of tuple list -- setting inUse to false: this = 0x13c2850 SELECT 1 [139958134339328]_QR_next_tuple: 'C' fetch_total = 1 & this_fetch = 1 [139958134339328]QR_next_tuple: backend_rows < CACHE_SIZE: brows = 0, cache_size = 0 [139958134339328]QR_next_tuple: reached eof now [139958134339328]send_query: got id = 'Z' [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: in QR_close_result [139958134339328]QResult: free memory in, fcount=1 [139958134339328]QResult: free memory out [139958134339328]QResult: enter DESTRUCTOR [139958134339328]QResult: exit close_result [139958134339328]QResult: exit DESTRUCTOR [139958134339328]conn->unicode=0 [139958134339328]CC_connect: returning...1 [139958134339328]szConnStrOut = 'DSN=psqlodbc_test_dsn;DATABASE=contrib_regression;SERVER=localhost;PORT=5432;UID=heikki;PWD=;SSLmode=disable;ReadOnly=No;Protocol=7.4;FakeOidIndex=No;ShowOidColumn=No;RowVersioning=No;ShowSystemTables=No;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=255;MaxLongVarcharSize=8190;Debug=1;CommLog=0;Optimizer=0;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=0;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBinary=0;UseServerSidePrepare=0;LowerCaseIdentifier=0;' len=607,1024 [139958134339328]PGAPI_DriverConnect: returning 0 [139958134339328][SQLGetFunctions][139958134339328][SQLGetInfo(30)][139958134339328]PGAPI_GetInfo: entering...fInfoType=77 [139958134339328]PGAPI_GetInfo: p='03.51', len=0, value=0, cbMax=20 [139958134339328][[SQLGetDiagRec]] [139958134339328]PGAPI_GetDiagRec entering type=2 rec=1 [139958134339328]**** PGAPI_ConnectError: hdbc=0x13b20e0 <512> [139958134339328]enter CC_get_error [139958134339328]enter CC_create_errormsg [139958134339328]msg = '' [139958134339328]exit CC_create_errormsg [139958134339328]exit CC_get_error [139958134339328]CC_Get_error returned nothing. [139958134339328]PGAPI_GetDiagRec exiting 100 [139958134339328][[SQLAllocHandle]][139958134339328]PGAPI_AllocStmt: entering... [139958134339328]**** PGAPI_AllocStmt: hdbc = 0x13b20e0, stmt = 0x13c3330 [139958134339328]CC_add_statement: self=0x13b20e0, stmt=0x13c3330 [139958134339328][[SQLGetStmtAttr]] Handle=20722480 10010 [139958134339328]PGAPI_GetStmtAttr Handle=0x13c3330 10010 [139958134339328][[SQLGetStmtAttr]] Handle=20722480 10011 [139958134339328]PGAPI_GetStmtAttr Handle=0x13c3330 10011 [139958134339328][[SQLGetStmtAttr]] Handle=20722480 10012 [139958134339328]PGAPI_GetStmtAttr Handle=0x13c3330 10012 [139958134339328][[SQLGetStmtAttr]] Handle=20722480 10013 [139958134339328]PGAPI_GetStmtAttr Handle=0x13c3330 10013 [139958134339328][SQLBindParameter][139958134339328]PGAPI_BindParameter: entering... [139958134339328]extend_parameter_bindings: entering ... self=0x13c34d8, parameters_allocated=0, num_params=1,(nil) [139958134339328]exit extend_parameter_bindings=0x13b9df0 [139958134339328]extend_iparameter_bindings: entering ... self=0x13c3548, parameters_allocated=0, num_params=1 [139958134339328]exit extend_iparameter_bindings=0x13b9e20 [139958134339328]extend_putdata_info: entering ... self=0x13c3610, parameters_allocated=0, num_params=1 [139958134339328]exit extend_putdata_info=0x13c2460 [139958134339328]PGAPI_BindParameter: ipar=0, paramType=1, fCType=1, fSqlType=12, cbColDef=5, ibScale=0,[139958134339328]rgbValue=0x400ec7(0), pcbValue=0x7fffece77ea0 [139958134339328][SQLExecDirect][139958134339328]PGAPI_ExecDirect: entering...1 [139958134339328]SC_recycle_statement: self= 0x13c3330 [139958134339328]**** PGAPI_ExecDirect: hstmt=0x13c3330, statement='SELECT 'foobar' WHERE 'foo' = ?' [139958134339328]PGAPI_ExecDirect: calling PGAPI_Execute... [139958134339328]PGAPI_Execute: entering...1 [139958134339328]PGAPI_Execute: clear errors... [139958134339328]PGAPI_NumParams: entering... [139958134339328]SC_scanQueryAndCountParams: entering... [139958134339328]SendParseRequest: plan_name= query=SELECT 'foobar' WHERE 'foo' = $1 [139958134339328]SendDescribeRequest:plan_name= [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 56, global_socket_buffersize=4096 [139958134339328]extend_iparameter_bindings: entering ... self=0x13c3548, parameters_allocated=1, num_params=1 [139958134339328]exit extend_iparameter_bindings=0x13b9e20 [139958134339328]num_fields = 1 [139958134339328]READING ATTTYPMOD [139958134339328]CI_read_fields: fieldname='?column?', adtid=705, adtsize=-2, atttypmod=-1 (rel,att)=(0,0) [139958134339328]SC_set_Result(13c3330, 13c2850)[139958134339328]QResult: enter DESTRUCTOR [139958134339328]prepareParameters was called, prepare state:2 [139958134339328]SC_recycle_statement: self= 0x13c3330 [139958134339328]Exec_with_parameters_resolved: copying statement params: trans_status=1, len=31, stmt='SELECT 'foobar' WHERE 'foo' = ?' [139958134339328]ResolveOneParam: from(fcType)=1, to(fSqlType)=12(25) [139958134339328]cvt_null_date_string=0 pgtype=25 buf=0x400ec7 [139958134339328]buf=0x400ec7 flag=2304 [139958134339328] stmt_with_params = 'SELECT 'foobar' WHERE 'foo' = 'foo'' [139958134339328]about to begin SC_execute [139958134339328] Sending SELECT statement on stmt=0x13c3330, cursor_name='SQL_CUR0x13c3330' qflag=0,1 [139958134339328]CC_send_query: conn=0x13b20e0, query='SELECT 'foobar' WHERE 'foo' = 'foo'' [139958134339328]send_query: done sending query 41bytes flushed [139958134339328]in QR_Constructor [139958134339328]exit QR_Constructor [139958134339328]read -1, global_socket_buffersize=4096 [139958134339328]Lasterror=11 [139958134339328]!!! poll ret=1 revents=1 [139958134339328]read 71, global_socket_buffersize=4096 [139958134339328]send_query: got id = 'T' [139958134339328]QR_fetch_tuples: cursor = '', self->cursor=(nil) [139958134339328]num_fields = 1 [139958134339328]READING ATTTYPMOD [139958134339328]CI_read_fields: fieldname='?column?', adtid=705, adtsize=-2, atttypmod=-1 (rel,att)=(0,0) [139958134339328]QR_fetch_tuples: past CI_read_fields: num_fields = 1 [139958134339328]MALLOC: tuple_size = 100, size = 1600 [139958134339328]QR_next_tuple: inTuples = true, falling through: fcount = 0, fetch_number = 0 [139958134339328]qresult: len=6, buffer='foobar' [139958134339328]end of tuple list -- setting inUse to false: this = 0x13c5f10 SELECT 1 [139958134339328]_QR_next_tuple: 'C' fetch_total = 1 & this_fetch = 1 [139958134339328]QR_next_tuple: backend_rows < CACHE_SIZE: brows = 0, cache_size = 0 [139958134339328]QR_next_tuple: reached eof now [139958134339328]send_query: got id = 'Z' [139958134339328] done sending the query: [139958134339328]extend_column_bindings: entering ... self=0x13c3410, bindings_allocated=0, num_columns=1 [139958134339328]exit extend_column_bindings=0x13c60e0 [139958134339328]retval=0 [139958134339328]PGAPI_ExecDirect: returned 0 from PGAPI_Execute [139958134339328][[SQLFetch]][139958134339328]PGAPI_ExtendedFetch: stmt=0x13c3330 rowsetSize=1 [139958134339328]SQL_FETCH_NEXT: num_tuples=0, currtuple=-1, rowst=-1 --------------040808010204050507010005 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 --------------040808010204050507010005--