Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CFA584754A6 for ; Mon, 19 Aug 2002 04:51:54 -0400 (EDT) Received: from ext1.ics.forth.gr (mailgate.ics.forth.gr [139.91.1.2]) by postgresql.org (Postfix) with ESMTP id 419DB4754A3 for ; Mon, 19 Aug 2002 04:51:53 -0400 (EDT) Received: from ismene.ics.forth.gr (mailhost.ics.forth.gr [139.91.157.51]) by ext1.ics.forth.gr (8.12.2/ICS-FORTH/V10.1.5-GATE) with ESMTP id g7J8q5pU009124 for ; Mon, 19 Aug 2002 11:52:05 +0300 (EET DST) Received: from ics.forth.gr (localhost [127.0.0.1]) by ismene.ics.forth.gr (8.8.8/ICS-FORTH/V3) with ESMTP id LAA17718 for ; Mon, 19 Aug 2002 11:51:50 +0300 (EET DST) Posted-Date: Mon, 19 Aug 2002 11:51:50 +0300 (EET DST) Organization: Message-ID: <3D60B195.6010807@ics.forth.gr> Date: Mon, 19 Aug 2002 11:51:33 +0300 From: Stelios Sfakianakis User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020723 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Text as long varchar? X-Enigmail-Version: 0.49.5.0 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/28 X-Sequence-Number: 1941 Hi, I have the following configuration: - PostgreSQL 7.2.1 - PostgreSQL odbc driver 7.2.1 - Driver Manager: iodbc 3.0.5 - OTL - FreeBSD 4.6 I try to read a TEXT column though the OTL's otl_long_string and I get an error because the type of column as returned by the odbc driver seems to be VARCHAR instead of VARCHAR_LONG. Perusing the odbc.postgresql.org site I found in the advanced options section something relative: "Text as LongVarChar: Postgres TEXT type is mapped to SQLLongVarchar, otherwise SQLVarchar" So although that this refers to the Win version of the odbc driver I put "TextAsLongVarchar = Yes" in both odbc.ini and odbcinst.ini but without success. The contents of these two files are: //odbcinst.ini: [ODBC Drivers] PostgreSQL = Installed [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libpsqlodbc.so Setup = /usr/local/lib/libpsqlodbc.so FileUsage = 0 TextAsLongVarchar = Yes //odbc.ini: [TEST] Description = Test Database Driver = /usr/local/lib/libpsqlodbc.so Trace = Yes TraceFile = sql.log Database = test Servername = localhost UserName = Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No TextAsLongVarchar = Yes ConnSettings = Any suggestions? Thanks for your time Stelios -- Thus spake the master programmer: ``After three days without programming, life becomes meaningless.'' --- The Tao of Programming