pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SQLExecute returns 0 rows with BoolsAsChar=1
Date: Thu, 21 Mar 2013 18:42:24 +0200
Message-ID: <514B3870.2060208@vmware.com> (raw)
In-Reply-To: <514AFABC.7000808@tpf.co.jp>
References: <51479445.7020905@vmware.com>
	<514AFABC.7000808@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

colsize5.c (text/x-csrc, 2.7K) download #include <stdlib.h> #include <stdio.h> #include <sql.h> #include <sqlext.h> 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; }
mylog_heikki23223.log (text/x-log, 16.1K) download [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

view thread (12+ messages)  latest in thread

Message-ID: <514B3870.2060208@vmware.com>
Permalink:  ../514B3870.2060208@vmware.com/
Also on:    postgresql.org/message-id/514B3870.2060208@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, inoue@tpf.co.jp
  Subject: Re: SQLExecute returns 0 rows with BoolsAsChar=1
  In-Reply-To: <514B3870.2060208@vmware.com>
  References: <51479445.7020905@vmware.com> <514AFABC.7000808@tpf.co.jp> <514B3870.2060208@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox