pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMaxLongVarChar and new lines in text
7+ messages / 3 participants
[nested] [flat]
* MaxLongVarChar and new lines in text
@ 2006-03-23 16:03 Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 08:40 ` Re: MaxLongVarChar and new lines in text Ludek Finstrle <luf@pzkagis.cz>
2006-03-24 09:21 ` Re: MaxLongVarChar and new lines in text Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 2 replies; 7+ messages in thread
From: Åsmund Kveim Lie @ 2006-03-23 16:03 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I'm having a problem with line breaks and the MaxLongVarChar setting.
I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set
MaxLongVarChar <= 16383 it gives different results than using
MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I
insert a newline in the db like this: INSERT INTO test VALUES ('\n');
and then retrieve it from my odbc app and write the result to a file.
CommLogs and result files are attached.
When using a small MaxLongVarChar value the result is (in hex) 0a0d (new
line, carriage teturn). For large MaxLongVarChar its 000a (new line
only). Any Windows app requires both new line and carriage return to
display new line correct. Any reason why this should differ when using
bigger values in MaxLongVarChar? We use the LF<->CR/LF conversion on.
I'm using 16383 in my app to day and it would be nice to increase this
without breaking my app.
Regards,
Åsmund Kveim Lie
Attachments:
psqlodbc_5840.log (application/octet-stream, 1.6K) download
psqlodbc_5600.log (application/octet-stream, 1.6K) download
8.1-16383 (application/octet-stream, 2B) download
8.1-4 (application/octet-stream, 1B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
@ 2006-03-24 08:40 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-24 10:40 ` Re: MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
1 sibling, 1 reply; 7+ messages in thread
From: Ludek Finstrle @ 2006-03-24 08:40 UTC (permalink / raw)
To: Åsmund Kveim Lie <akl@nosyko.no>; +Cc: pgsql-odbc
> I'm having a problem with line breaks and the MaxLongVarChar setting.
> I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set
> MaxLongVarChar <= 16383 it gives different results than using
> MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I
Hello,
could you try new 7.3.260 (enhanced branch) version? It's downloadable
from www.pgfoundry.org.
Hiroshi doesn't become the time for releasing 7.3.261? Or at least could
you put patched 7.3.260 on pgfoundry? I know you put it somewhere on the
net but I didn't remember the URL.
Regards,
Luf
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 08:40 ` Re: MaxLongVarChar and new lines in text Ludek Finstrle <luf@pzkagis.cz>
@ 2006-03-24 10:40 ` Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 12:23 ` Re: MaxLongVarChar and new lines in text Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 7+ messages in thread
From: Åsmund Kveim Lie @ 2006-03-24 10:40 UTC (permalink / raw)
To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: pgsql-odbc
Hi Luf,
The enhanced driver does not seem to work at all with
MaxLongVarCharSize=-4 as the connect function returns false and the
mylog ends with "[2112]DETACHING PROCESS".
When using MaxLongVarCharSize=8190 I bump into another problem with my
app when trying to fetch bytea: [Microsoft][ODBC Driver Manager] Invalid
string or buffer length. It seems that this version of the driver is
handling bytea's a little bit different and not quite ready for my use.
I would prefer to use the 08.01.200 driver until the enhanced branch is
considered stable for production use.
regards,
Åsmund Kveim Lie
Ludek Finstrle wrote:
>> I'm having a problem with line breaks and the MaxLongVarChar setting.
>> I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set
>> MaxLongVarChar <= 16383 it gives different results than using
>> MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I
>
> Hello,
>
> could you try new 7.3.260 (enhanced branch) version? It's downloadable
> from www.pgfoundry.org.
>
> Hiroshi doesn't become the time for releasing 7.3.261? Or at least could
> you put patched 7.3.260 on pgfoundry? I know you put it somewhere on the
> net but I didn't remember the URL.
>
> Regards,
>
> Luf
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 08:40 ` Re: MaxLongVarChar and new lines in text Ludek Finstrle <luf@pzkagis.cz>
2006-03-24 10:40 ` Re: MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
@ 2006-03-24 12:23 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 7+ messages in thread
From: Hiroshi Inoue @ 2006-03-24 12:23 UTC (permalink / raw)
To: Åsmund Kveim Lie <akl@nosyko.no>; +Cc: Ludek Finstrle <luf@pzkagis.cz>; pgsql-odbc
Åsmund Kveim Lie wrote:
> Hi Luf,
>
> The enhanced driver does not seem to work at all with
> MaxLongVarCharSize=-4 as the connect function returns false and the
> mylog ends with "[2112]DETACHING PROCESS".
Could you turn on the *Debug* option not only in the DataSource section
but also in the Global section ?
And Could you send me the mylog output ?
>
> When using MaxLongVarCharSize=8190 I bump into another problem with my
> app when trying to fetch bytea: [Microsoft][ODBC Driver Manager]
> Invalid string or buffer length. It seems that this version of the
> driver is handling bytea's a little bit different and not quite ready
> for my use.
Could you send me the Mylog output ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
@ 2006-03-24 09:21 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-24 09:29 ` Re: MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
1 sibling, 1 reply; 7+ messages in thread
From: Hiroshi Inoue @ 2006-03-24 09:21 UTC (permalink / raw)
To: Åsmund Kveim Lie <akl@nosyko.no>; +Cc: pgsql-odbc
Åsmund Kveim Lie wrote:
> Hi,
>
> I'm having a problem with line breaks and the MaxLongVarChar setting.
> I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set
> MaxLongVarChar <= 16383 it gives different results than using
> MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I
> insert a newline in the db like this: INSERT INTO test VALUES ('\n');
> and then retrieve it from my odbc app and write the result to a file.
> CommLogs and result files are attached.
>
> When using a small MaxLongVarChar value the result is (in hex) 0a0d (new
> line, carriage teturn). For large MaxLongVarChar its 000a (new line
> only). Any Windows app requires both new line and carriage return to
> display new line correct. Any reason why this should differ when using
> bigger values in MaxLongVarChar? We use the LF<->CR/LF conversion on.
Just a confirmation.
Aren't you setting MaxVarChar not MaxLongVarChar ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 09:21 ` Re: MaxLongVarChar and new lines in text Hiroshi Inoue <inoue@tpf.co.jp>
@ 2006-03-24 09:29 ` Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 10:00 ` Re: MaxLongVarChar and new lines in text Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 7+ messages in thread
From: Åsmund Kveim Lie @ 2006-03-24 09:29 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
Hi,
No. In our registry settings we set MaxLongVarcharSize (and
TextAsLongVarchar = 1). We don’t even set MaxVarChar specifically, but
use default. I also noticed the difference in the log. I can send you
all of our settings if that gives you more information.
regards,
Åsmund K Lie
Hiroshi Inoue wrote:
> Åsmund Kveim Lie wrote:
>> Hi,
>>
>> I'm having a problem with line breaks and the MaxLongVarChar setting.
>> I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set
>> MaxLongVarChar <= 16383 it gives different results than using
>> MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I
>> insert a newline in the db like this: INSERT INTO test VALUES ('\n');
>> and then retrieve it from my odbc app and write the result to a file.
>> CommLogs and result files are attached.
>>
>> When using a small MaxLongVarChar value the result is (in hex) 0a0d
>> (new line, carriage teturn). For large MaxLongVarChar its 000a (new
>> line only). Any Windows app requires both new line and carriage return
>> to display new line correct. Any reason why this should differ when
>> using bigger values in MaxLongVarChar? We use the LF<->CR/LF
>> conversion on.
>
> Just a confirmation.
> Aren't you setting MaxVarChar not MaxLongVarChar ?
>
> regards,
> Hiroshi Inoue
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: MaxLongVarChar and new lines in text
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 09:21 ` Re: MaxLongVarChar and new lines in text Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-24 09:29 ` Re: MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
@ 2006-03-24 10:00 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 7+ messages in thread
From: Hiroshi Inoue @ 2006-03-24 10:00 UTC (permalink / raw)
To: Åsmund Kveim Lie <akl@nosyko.no>; +Cc: pgsql-odbc
Åsmund Kveim Lie wrote:
> Hi,
>
> No. In our registry settings we set MaxLongVarcharSize (and
> TextAsLongVarchar = 1). We don’t even set MaxVarChar specifically, but
> use default.
Oh I see. It seems the driver's fault about debuggin output.
Ok could you send me the Mylog output ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2006-03-24 12:23 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-23 16:03 MaxLongVarChar and new lines in text Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 08:40 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-24 10:40 ` Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 12:23 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-24 09:21 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-24 09:29 ` Åsmund Kveim Lie <akl@nosyko.no>
2006-03-24 10:00 ` Hiroshi Inoue <inoue@tpf.co.jp>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox