Skip site navigation (1) Skip section navigation (2)

Text field truncated using ADO/ODBC

From: Bill <pg(at)dbginc(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Text field truncated using ADO/ODBC
Date: 2008-08-22 16:16:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
I am new to PostgreSQL and running 8.3  on Windows. I am connecting 
using ADO and the ODBC driver. I have a table the contains a Varchar(80) 
column and a Text column as well as a couple of integer and datetime 
columns. My connection string contains TextAsLongVarchar=1 and 
MaxLongVarcharSize=65536, however, my Text column is being truncated at 
254 bytes (the value of MaxVarcharSize).

Adding UnknownAsLongVarchar=1 to the connection string causes ADO to see 
Text column as LongVarchar and return its complete value but it also 
causes the Varchar column to be seen as LongVarChar. This suggests that 
the driver sees both Text and Varchar as unknown types.

What must I do to get the ODBC driver to see the Text column as 
LongVarchar and the Varchar column as Varchar? The complete connection 
string follows by signature.



Provider=MSDASQL.1;Extended Properties="DRIVER={PostgreSQL 

pgsql-odbc by date

Next:From: Mr. JohnDate: 2008-08-27 06:28:52
Subject: Restore and backup with VFP
Previous:From: Marcin LigorowskiDate: 2008-08-19 18:35:36
Subject: Re: resolution for bug 1010313

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group