Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 136E1477386 for ; Fri, 15 Nov 2002 11:40:41 -0500 (EST) Received: from ns.otc.pl (ns.otc.pl [62.233.151.194]) by postgresql.org (Postfix) with ESMTP id 7B5EB477220 for ; Fri, 15 Nov 2002 11:24:58 -0500 (EST) Received: from BOZENA ([62.233.151.193]) by ns.otc.pl (8.9.3/8.9.0) with SMTP id RAA07307 for ; Fri, 15 Nov 2002 17:30:27 +0100 From: =?iso-8859-2?Q?Bo=BFena_Potempa?= To: Subject: PostgreSQL+ Beta bug? Date: Fri, 15 Nov 2002 17:24:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/67 X-Sequence-Number: 2244 Dear Authors of PostgreSQL ODBC driver, I am trying to use PostgreSQL+ Beta driver on Windows 2000. It works very well with one exception. When I try to insert a char value including 0 then the remaing characters are lost. And example: simple table: create table t (fc varchar(5)) The program code (runable in MS VC++ 6.0): // connect and allocate a statement handle hstmt HSTMT hstmt; RETCODE rc; char fc[5]; SQLINTEGER fcl; rc = SQLPrepare(hstmt, "insert into t values(?)", SQL_NTS); rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARCHAR, 5, 0, fc, sizeof(fc), &fcl); fc[0]=1; fc[1]=0; fc[2]='a'; fcl=3; /* string length */ rc = SQLExecute(hstmt); // disconnect ----- After this please check in psql: select ascii(substring(fc,1,1)) from t; - 1, OK select ascii(substring(fc,2,1)) from t; - 0, OK select ascii(substring(fc,3,1)) from t; - 0 - lost value 'a' Please let me know if this is a known bug and what is the possibility of fixing this. Best regards, Bozena Potempa OTC Poland