Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 715E4475AE4 for ; Fri, 22 Nov 2002 00:26:09 -0500 (EST) Received: from frankenstein.nwlink.com (pop.nwlink.com [209.20.130.39]) by postgresql.org (Postfix) with ESMTP id A66A24759AF for ; Fri, 22 Nov 2002 00:26:08 -0500 (EST) Received: from mercury.johnpark.net (ip188.gte31.rb1.bel.nwlink.com [207.202.209.188]) by frankenstein.nwlink.com (8.11.3/8.11.3) with ESMTP id gAM5QDd78416 for ; Thu, 21 Nov 2002 21:26:13 -0800 (PST) (envelope-from glenebob@nwlink.com) Received: from saturn (saturn.johnpark.net [192.168.1.11]) by mercury.johnpark.net (8.11.6/8.11.6) with ESMTP id gAM6Pvd04572 for ; Thu, 21 Nov 2002 22:25:57 -0800 From: "Glen Parker" To: Subject: Bug in latest ODBC driver (07.02.0004) Date: Thu, 21 Nov 2002 21:26:18 -0800 Message-ID: <002801c291e7$afd7e5f0$0b01a8c0@johnpark.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0029_01C291A4.A1B4A5F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/119 X-Sequence-Number: 2296 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C291A4.A1B4A5F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The 07.02.0004 (the ver. 3, non unicode in this case) driver has broken some programs I have. Attached is a snip from my ODBC log. The basic problem seems to be that sending a 'create ...' statement to the server and trying to get the row count after it executes causes errors that shouldn't be happening. The statement executes fine, as the log shows, but SQLRowCount() returns -1 (SQL_ERROR). There is also aparently no error info saved because SQLGetDiagRecW() returns 100 (SQL_NO_DATA_FOUND). Shouldn't SQLRowCount() succeed and return a row count of -1? My platform is Win2k. select version(); PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96 Glen Parker glenebob@nwlink.com ------=_NextPart_000_0029_01C291A4.A1B4A5F0 Content-Type: application/octet-stream; name="ODBC.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ODBC.log" odbctest 644-660 ENTER SQLPrepare=20 HSTMT 00BE2090 UCHAR * 0x00D0A894 [ -3] "create table __test1 (field1 i= nt4)\ d\ a\ 0" SDWORD -3 odbctest 644-660 EXIT SQLPrepare with return code 0 (SQL_SUCCESS) HSTMT 00BE2090 UCHAR * 0x00D0A894 [ -3] "create table __test1 (field1 i= nt4)\ d\ a\ 0" SDWORD -3 odbctest 644-660 ENTER SQLExecute=20 HSTMT 00BE2090 odbctest 644-660 EXIT SQLExecute with return code 0 (SQL_SUCCESS) HSTMT 00BE2090 odbctest 644-660 ENTER SQLRowCount=20 HSTMT 00BE2090 SQLLEN * 0x0012F504 odbctest 644-660 EXIT SQLRowCount with return code -1 (SQL_ERROR) HSTMT 00BE2090 SQLLEN * 0x0012F504 odbctest 644-660 ENTER SQLGetDiagRecW=20 SQLSMALLINT 3=20 SQLHANDLE 00BE2090 SQLSMALLINT 1=20 SQLWCHAR * 0x0012F368 (NYI)=20 SQLINTEGER * 0x00D0A90C SQLWCHAR * 0x00BE16A0 (NYI)=20 SQLSMALLINT 254=20 SQLSMALLINT * 0x0012F4D2 odbctest 644-660 EXIT SQLGetDiagRecW with return code 100 (SQL_NO_= DATA_FOUND) SQLSMALLINT 3=20 SQLHANDLE 00BE2090 SQLSMALLINT 1=20 SQLWCHAR * 0x0012F368 (NYI)=20 SQLINTEGER * 0x00D0A90C SQLWCHAR * 0x00BE16A0 (NYI)=20 SQLSMALLINT 254=20 SQLSMALLINT * 0x0012F4D2 odbctest 644-660 ENTER SQLFreeStmt=20 HSTMT 00BE2090 UWORD 0 odbctest 644-660 EXIT SQLFreeStmt with return code 0 (SQL_SUCCESS) HSTMT 00BE2090 UWORD 0 ------=_NextPart_000_0029_01C291A4.A1B4A5F0--