X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C17163A3D0E for ; Mon, 8 Nov 2004 10:49:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19496-10 for ; Mon, 8 Nov 2004 10:49:13 +0000 (GMT) Received: from nitrogenio.carvalhaes.net (oxigenio.carvalhaes.net [200.102.144.130]) by svr1.postgresql.org (Postfix) with ESMTP id 12E373A3D25 for ; Mon, 8 Nov 2004 10:49:13 +0000 (GMT) Received: from [192.168.0.5] ([192.168.0.5]) (authenticated bits=0) by nitrogenio.carvalhaes.net (8.12.11/8.12.11) with ESMTP id iA8AhPk2008023 for ; Mon, 8 Nov 2004 08:43:25 -0200 Message-ID: <418F3387.2020208@carvalhaes.net> Date: Mon, 08 Nov 2004 08:51:19 +0000 From: Rodrigo Carvalhaes Reply-To: grupos@carvalhaes.net User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Snapshots Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Carvalhaes-MailScanner-Information: Please contact the ISP for more information X-Carvalhaes-MailScanner: Found to be clean X-MailScanner-From: grupos@carvalhaes.net X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/12 X-Sequence-Number: 4626 eter Eisentraut wrote: >Rodrigo Carvalhaes wrote: > > >>I tried to use with my application (developed in C++) the three >>avaliable snapshots but no one worked... I tried because the last >>stable version of the odbc driver have one bug concerning text >>fields. >> >>There are so much changes? It shouldn't work or it's really unstable? >> >> > >We might be able to answer that if you told us what exact problem you >are having. > > > Hi Peter! Thanks for your promplty answer (and congratulations for your job!!!) I am using ODBC with a commercial application (ERP software developed in c++). It's strange what is happening . Environment: Conectiva Linux version 10 kernel 2.6.9 PostgreSQL 7.4.6 (compiled from the sources) My steps: 1. Compiled unixodbc 2.2.10 from the sources without gui (as my server don't have X) 2. Compiled psqlodbc_07.03.0200 from the source with the configure option: /configure --prefix=/usr/local/psqlodbc_07.03.0200/ --with-unixodbc -–with-odbcinst=/usr/local/etc/ 3. Configured the odbc files as follow: root@carbono/usr/local/etc> cat odbcinst.ini [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Trace = Yes TraceFile = /tmp/sql.log Driver = /usr/local/psqlodbc_07.03.0200/lib/psqlodbc.so Setup = /usr/local/lib/libodbcpsqlS.so UsageCount = 2 CommLog = 1 root@carbono/usr/local/etc> cat odbc.ini [dadosadv] Description = Microsiga Driver = PostgreSQL Trace = Yes TraceFile = /tmp/sql.log Database = dadosadv Servername = localhost UserName = postgres Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = root@carbono/usr/local/etc> cat /root/.odbc.ini [dadosadv] Description = Microsiga Driver = PostgreSQL Trace = Yes TraceFile = /tmp/sql.log Database = dadosadv Servername = localhost UserName = postgres Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = 4. I had the symbolik link below ( I don't know why!!!) to the application recocnize the ODBC: ln -s /usr/local/psqlodbc_07.03.0200/lib/libpsqlodbc.so -> /usr/lib/libodbcpsql.so After this, everything was fine, working without problems. When I made the same steps with any of the versions on the snapshot (3 avaliable) the application don't recocnize the ODBC and I don't get any log, I only receive error messages on the application "no connection". Any idea? How can I "debug" what is happening? I don't have too much experience with ODBC... My problem in use the version 07.03.0200 it's that I am always having problems with the type "text" and my pg log is always receiving error messages ERROR: unrecognized configuration parameter "ksqo" due the statements sent by the ODBC " set ksqo to on" Cheers, Rodrigo Carvalhaes