X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 5651830FC9B for ; Thu, 26 Jun 2003 15:41:18 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 73149-04 for ; Thu, 26 Jun 2003 12:41:07 -0300 (ADT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 38AC730EAD9 for ; Thu, 26 Jun 2003 12:41:07 -0300 (ADT) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VYrD-0007P2-00 for ; Thu, 26 Jun 2003 17:40:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VYfD-00064y-00 for ; Thu, 26 Jun 2003 17:27:55 +0200 From: "Ivar" Subject: Funny odbc + MS odbc.net behaviour. Date: Thu, 26 Jun 2003 18:28:15 +0300 Lines: 48 Message-ID: X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/69 X-Sequence-Number: 3043 Hi, I have funny odbc (unicode) + MS odbc.net data provider behaviour, it's hard to explain but I'll try. Table structure which causes error: CREATE TABLE test ( nimetus varchar(20) NOT NULL, hind decimal(18,5) NOT NULL ); Data in table insert into test values('vvv vvvX',3); - X is char(382), Z with ROOF. Other unicode chars provide same result. Eg. russian 'k'. I have table with following row. I just make select * from test with odbc.net provider and 'Input string isn't in a correct format' error is arised. Now funn begins: If to change column 'hind' to decimal(18.3) - all works ok. If to change row value from 'vvv vvvX',3 to vvvX,3 or vX,3 or v vvvX,3 ... - all works ok. (It's important that value is char_char_cahr_space_char_char_char_UnicodeChar to get error, but not all unicode chars won't fit) Now I thought that's MS odbc.net provider bug, but to make same table with same values to ms sql server using ms sql server odbc driver, all works ok. pgsql 7.3.1 on windows + latest odbc driver Have anybody some idea or suggestions ? begin 666 bug2.sql M[[N_#0H-"D-214%412!404),12!T97-T("@-"@EN:6UE='5S('9A