pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedpsqlODBC-Driver Test / text fields
26+ messages / 6 participants
[nested] [flat]
* psqlODBC-Driver Test / text fields
@ 2006-03-27 12:45 Johann Zuschlag <zuschlag2@online.de>
0 siblings, 0 replies; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-27 12:45 UTC (permalink / raw)
To: dpage@vale-housing.co.uk; +Cc: pgsql-odbc
Hi Dave,
here is another one, same problem like Miguel:
PostgreSQL 8.0X on Debian Sarge
Unicode Database
Application with psqlodbc+ 7.02.02.60 on Win XP Sp2
Operation: Reading and writing of a, A, u, U, o, O-Umlaut and sz (german
characters)
Data type: text
Remarks: none
Protocol: 7.4+
Result: failed, insert works, querying doesn't work
Remark: No errors in postgres.log
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-27 12:50 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 2 replies; 26+ messages in thread
From: Dave Page @ 2006-03-27 12:50 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Johann Zuschlag [mailto:zuschlag2@online.de]
> Sent: 27 March 2006 13:46
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: psqlODBC-Driver Test / text fields
>
> Hi Dave,
>
> here is another one, same problem like Miguel:
Miguel's problem is somewhat unique to BDE from what I recall -
specifically it ignores Unicode text columns which the Unicode driver
will offer by default. The same problem has been reported with Oracle
and other DBMS's on usenet.
> PostgreSQL 8.0X on Debian Sarge
> Unicode Database
> Application with psqlodbc+ 7.02.02.60 on Win XP Sp2
>
> Operation: Reading and writing of a, A, u, U, o, O-Umlaut and
> sz (german
> characters)
> Data type: text
> Remarks: none
> Protocol: 7.4+
> Result: failed, insert works, querying doesn't work
OK, that sounds like the old bug we were seeing. What is the difference
between those and the previous results you reported a few minutes ago?
Is it just the text/varchar difference?
Regards, Dave.
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-27 13:00 Johann Zuschlag <zuschlag2@online.de>
parent: Dave Page <dpage@vale-housing.co.uk>
1 sibling, 0 replies; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-27 13:00 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
Dave Page schrieb:
>
> OK, that sounds like the old bug we were seeing. What is the difference
> between those and the previous results you reported a few minutes ago?
> Is it just the text/varchar difference?
>
>
>
Yes, I forgot to test the text field. I shall set debug higher to see
what is going on.
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-27 15:50 Johann Zuschlag <zuschlag2@online.de>
parent: Dave Page <dpage@vale-housing.co.uk>
1 sibling, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-27 15:50 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
Dave Page schrieb:
>OK, that sounds like the old bug we were seeing. What is the difference
>between those and the previous results you reported a few minutes ago?
>Is it just the text/varchar difference?
>
>Regards, Dave.
>
>
>
Hi Dave,
the problem doesn't seem to be related to the text field. Please note
the examples below:
1. Searching for a string starting with a 't' seems to work fine:
2006-03-27 16:49:48 [2931] LOG: statement: declare "SQL_CUR0210FD50"
cursor with hold for SELECT t6.* FROM KUNDE t6 WHERE t6.name >= 't' AND
t6.name <= 'tz' ORDER BY t6.name ASC, t6.kundenid ASC
2. Searching for a string starting with o-Umlaut (german character)
doesn't return any results (in my app.).
2006-03-27 16:50:37 [2931] LOG: statement: declare "SQL_CUR0210FD50"
cursor with hold for SELECT t6.* FROM KUNDE t6 WHERE t6.name >= 'ö'
AND t6.name <= 'öz' ORDER BY t6.name ASC, t6.kundenid ASC
Maybe the WHERE-statement is not parsed by the driver. But the hex
representation of 'ö' is 'C3B6', that is the correct UTF8 code (not
unicode) of o-Umlaut.
3. Furthermore I noticed that I wouldn't get anything back if the
searched string contains any "Umlauts". So I guess there could be a
problem with the result set too.
SELECT without a WHERE-statement works.
Any ideas?
A mylog ist available, as well as the tiny data set (6 lines)..
Hope that helps.
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-27 18:44 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 1 reply; 26+ messages in thread
From: Hiroshi Inoue @ 2006-03-27 18:44 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: Dave Page <dpage@vale-housing.co.uk>; pgsql-odbc
Johann Zuschlag wrote:
> Dave Page schrieb:
>
>> OK, that sounds like the old bug we were seeing. What is the difference
>> between those and the previous results you reported a few minutes ago?
>> Is it just the text/varchar difference?
>>
>> Regards, Dave.
>>
>>
>>
>
> Hi Dave,
>
> the problem doesn't seem to be related to the text field. Please note
> the examples below:
>
> 2. Searching for a string starting with o-Umlaut (german character)
> doesn't return any results (in my app.).
>
> 2006-03-27 16:50:37 [2931] LOG: statement: declare "SQL_CUR0210FD50"
> cursor with hold for SELECT t6.* FROM KUNDE t6 WHERE t6.name >= 'ö'
> AND t6.name <= 'öz' ORDER BY t6.name ASC, t6.kundenid ASC
>
> Maybe the WHERE-statement is not parsed by the driver. But the hex
> representation of 'ö' is 'C3B6', that is the correct UTF8 code (not
> unicode) of o-Umlaut.
Hi Johann,
Could you try the same query using psql with the client_encoding 'UTF8' ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 14:01 Johann Zuschlag <zuschlag2@online.de>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-28 14:01 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Hiroshi Inoue schrieb:
>
>>
>> 2. Searching for a string starting with o-Umlaut (german character)
>> doesn't return any results (in my app.).
>>
>> 2006-03-27 16:50:37 [2931] LOG: statement: declare "SQL_CUR0210FD50"
>> cursor with hold for SELECT t6.* FROM KUNDE t6 WHERE t6.name >= 'ö'
>> AND t6.name <= 'öz' ORDER BY t6.name ASC, t6.kundenid ASC
>>
>> Maybe the WHERE-statement is not parsed by the driver. But the hex
>> representation of 'ö' is 'C3B6', that is the correct UTF8 code (not
>> unicode) of o-Umlaut.
>
>
> Hi Johann,
> Could you try the same query using psql with the client_encoding 'UTF8' ?
>
> regards,
> Hiroshi Inoue
>
Hi Hiroshi,
Do you mean psql on the Linux-server?
my locales:
de_DE.ISO-8859-1 (default)
de_DE.UTF-8
de_DE.UTF-8@euro
de_DE.ISO-8859-15@euro
I call psql:
- set client_encoding='UTF8';
- select name from kunde;
result e.g: 'öä-test' (=o-Umlaut, a-Umlaut, -test)
- select name from kunde where name >= 'ö' and name <= 'öz' order by
name asc;
result: ERROR: Unicode characters greater than or equal to 0x10000 are
not supported
export LANG=de_DE.UTF-8 doesn't change the behavior.
(select name from kunde where name >= 'ö' and name <= 'öz' order by
name asc; works of course)
regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 14:17 Johann Zuschlag <zuschlag2@online.de>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-28 14:17 UTC (permalink / raw)
To: inoue@tpf.co.jp; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Johann Zuschlag schrieb:
>
>
> (select name from kunde where name >= 'ö' and name <= 'öz' order by
> name asc; works of course)
>
>
Maybe that is more precise:
select name from kunde where name >= 'ö' and name <= 'öz' order by
name asc;
Does not give an error, but 0 result lines.
regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 14:34 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 1 reply; 26+ messages in thread
From: Hiroshi Inoue @ 2006-03-28 14:34 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Johann Zuschlag wrote:
> Johann Zuschlag schrieb:
>
>>
>>
>> (select name from kunde where name >= 'ö' and name <= 'öz' order by
>> name asc; works of course)
>>
>>
> Maybe that is more precise:
>
> select name from kunde where name >= 'ö' and name <= 'öz' order by
> name asc;
>
> Does not give an error, but 0 result lines.
Thanks.
Could you issue the following 2 queries
select name from kunde where name >= 'ö' order by name asc;
select name from kunde where name <= 'öz' order by name asc;
and see the results ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 14:54 Johann Zuschlag <zuschlag2@online.de>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-28 14:54 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Hiroshi Inoue schrieb:
>
> Thanks.
> Could you issue the following 2 queries
>
> select name from kunde where name >= 'ö' order by name asc;
>
name
--------
öä-test
öäüÃÃ
ÃÃ-test
(2 Zeilen)
> select name from kunde where name <= 'öz' order by name asc;
>
name
--------
Hühne
Müller
Täst
test
test-2
(5 Zeilen)
The complete "data" set:
select name from kunde order by name asc;
name
---------------
Hühne
Müller
Täst
test
test-2
öä-test
öäüÃÃ
ÃÃ-test
(7 Zeilen)
Seems, that the query is not correct my application is sending.
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 15:38 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 2 replies; 26+ messages in thread
From: Hiroshi Inoue @ 2006-03-28 15:38 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Johann Zuschlag wrote:
> Hiroshi Inoue schrieb:
>
>>
>> Thanks.
>> Could you issue the following 2 queries
>>
>> select name from kunde where name >= 'ö' order by name asc;
>>
> name
> --------
> öä-test
> öäüÃÃ
> ÃÃ-test
> (2 Zeilen)
>
>> select name from kunde where name <= 'öz' order by name asc;
>>
> name
> --------
> Hühne
> Müller
> Täst
> test
> test-2
> (5 Zeilen)
Hmm utf8 code of a-umlaut seems bigger than 'z' .
Well how is the result of the following(original ?) query
under default encoding ?
select name from kunde where name >= 'ö' and name <= 'öz' order by
name asc;
regards,
Hiroshi inoue
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 16:05 Campbell, Greg <greg.campbell@us.michelin.com>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
1 sibling, 2 replies; 26+ messages in thread
From: Campbell, Greg @ 2006-03-28 16:05 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
When I look at a character map, for instance with Windows Start, Run, All Programs, Accessories, System
Tools, Character Map and a extended character set like Arial.
I see that all the accented characters (umlauts, graves, etc.) are higher that unaccented letters. I also
can see the UTF8 equivalents.
Hiroshi Inoue wrote:
> Johann Zuschlag wrote:
>
>> Hiroshi Inoue schrieb:
>>
>>>
>>> Thanks.
>>> Could you issue the following 2 queries
>>>
>>> select name from kunde where name >= 'ö' order by name asc;
>>>
>> name
>> --------
>> öä-test
>> öäüÃÃ
>> ÃÃ-test
>> (2 Zeilen)
>>
>>> select name from kunde where name <= 'öz' order by name asc;
>>>
>> name
>> --------
>> Hühne
>> Müller
>> Täst
>> test
>> test-2
>> (5 Zeilen)
>
>
>
> Hmm utf8 code of a-umlaut seems bigger than 'z' .
>
> Well how is the result of the following(original ?) query
> under default encoding ?
>
> select name from kunde where name >= 'ö' and name <= 'öz' order by name
> asc;
>
> regards,
> Hiroshi inoue
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
Attachments:
greg.campbell.vcf (text/x-vcard, 239B) download
begin:vcard
fn:Greg Campbell
n:Campbell;Greg
org:Michelin North America - US5 Lexington;ENG-ASE
email;internet:greg.campbell@us.michelin.com
title:ASE Systems Engineer
tel;work:803-951-5561/x75561
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 16:43 Johann Zuschlag <zuschlag2@online.de>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
1 sibling, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-28 16:43 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Hiroshi Inoue schrieb:
>
> Hmm utf8 code of a-umlaut seems bigger than 'z' .
>
> Well how is the result of the following(original ?) query
> under default encoding ?
>
> select name from kunde where name >= 'ö' and name <= 'öz' order by
> name asc;
>
ERROR: Unicode characters greater than or equal to 0x10000 are not
supported
:-)
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 17:44 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 1 reply; 26+ messages in thread
From: Hiroshi Inoue @ 2006-03-28 17:44 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Johann Zuschlag wrote:
> Hiroshi Inoue schrieb:
>
>>
>> Hmm utf8 code of a-umlaut seems bigger than 'z' .
>>
>> Well how is the result of the following(original ?) query
>> under default encoding ?
>>
>> select name from kunde where name >= 'ö' and name <= 'öz' order by
>> name asc;
>>
> ERROR: Unicode characters greater than or equal to 0x10000 are not
> supported
With the default encoding(ISO-8859-1 ?) ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 21:33 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Campbell, Greg <greg.campbell@us.michelin.com>
1 sibling, 1 reply; 26+ messages in thread
From: Hiroshi Inoue @ 2006-03-28 21:33 UTC (permalink / raw)
To: Campbell, Greg <greg.campbell@us.michelin.com>; +Cc: pgsql-odbc
Campbell, Greg wrote:
> When I look at a character map, for instance with Windows Start, Run,
> All Programs, Accessories, System Tools, Character Map and a extended
> character set like Arial.
> I see that all the accented characters (umlauts, graves, etc.) are
> higher that unaccented letters. I also can see the UTF8 equivalents.
>
Do you mean the behabior reported by Johann is reasonable ?
I'm not familiar with LATIN encoding.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-28 21:53 Campbell, Greg <greg.campbell@us.michelin.com>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 26+ messages in thread
From: Campbell, Greg @ 2006-03-28 21:53 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
I think, yes.
When I look at characters and numeric representations of them, SORTS and comparison operators seem to be
behaving correctly.
Hiroshi Inoue wrote:
> Campbell, Greg wrote:
>
>> When I look at a character map, for instance with Windows Start, Run,
>> All Programs, Accessories, System Tools, Character Map and a extended
>> character set like Arial.
>> I see that all the accented characters (umlauts, graves, etc.) are
>> higher that unaccented letters. I also can see the UTF8 equivalents.
>>
>
> Do you mean the behabior reported by Johann is reasonable ?
> I'm not familiar with LATIN encoding.
>
> regards,
> Hiroshi Inoue
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
Attachments:
greg.campbell.vcf (text/x-vcard, 239B) download
begin:vcard
fn:Greg Campbell
n:Campbell;Greg
org:Michelin North America - US5 Lexington;ENG-ASE
email;internet:greg.campbell@us.michelin.com
title:ASE Systems Engineer
tel;work:803-951-5561/x75561
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 09:17 Marc Herbert <Marc.Herbert@continuent.com>
parent: Campbell, Greg <greg.campbell@us.michelin.com>
1 sibling, 0 replies; 26+ messages in thread
From: Marc Herbert @ 2006-03-29 09:17 UTC (permalink / raw)
To: pgsql-odbc
"Campbell, Greg" <greg.campbell@us.michelin.com> writes:
> When I look at a character map, for instance with Windows Start, Run,
> All Programs, Accessories, System Tools, Character Map and a extended
> character set like Arial.
> I see that all the accented characters (umlauts, graves, etc.) are
> higher that unaccented letters. I also can see the UTF8 equivalents.
>
Not 100% sure I understood this issue, but it seems you are confusing
encoding and collation.
See strcmp() and strcoll().
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 13:16 Johann Zuschlag <zuschlag2@online.de>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-29 13:16 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: dpage@vale-housing.co.uk; pgsql-odbc
Hiroshi Inoue schrieb:
> Johann Zuschlag wrote:
>
>> Hiroshi Inoue schrieb:
>>
>>>
>>> Hmm utf8 code of a-umlaut seems bigger than 'z' .
>>>
>>> Well how is the result of the following(original ?) query
>>> under default encoding ?
>>>
>>> select name from kunde where name >= 'ö' and name <= 'öz' order by
>>> name asc;
>>>
>> ERROR: Unicode characters greater than or equal to 0x10000 are not
>> supported
>
>
> With the default encoding(ISO-8859-1 ?) ?
>
Oh, I misunderstood you. Do you mean the database default encoding?
IIRC ISO-8859-1 would be equivalent to LATIN1?
I generated a new database with the same data in LATIN1:
test-latin1=# select name from kunde order by name asc;
name
--------------
Hühne
Müller
Täst
test
test-2
öä-test
öäüÖÄÜß-test
(7 Zeilen)
test-latin1=# select name from kunde where name >= 'ö' and name <= 'öz'
order by name asc;
name
------
(0 Zeilen)
And please note the following:
test-latin1=# select name from kunde where name >= 'ö' and name <= 'ö'
order by name asc;
name
------
(0 Zeilen)
Hmm...
Regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 14:34 Ludek Finstrle <luf@pzkagis.cz>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 1 reply; 26+ messages in thread
From: Ludek Finstrle @ 2006-03-29 14:34 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: Hiroshi Inoue <inoue@tpf.co.jp>; dpage@vale-housing.co.uk; pgsql-odbc
> test-latin1=# select name from kunde order by name asc;
> name
> --------------
> Hühne
> Müller
> Täst
> test
> test-2
> öä-test
> öäüÖÄÜß-test
> (7 Zeilen)
>
> test-latin1=# select name from kunde where name >= 'ö' and name <= 'öz'
> order by name asc;
> name
> ------
> (0 Zeilen)
>
> And please note the following:
>
> test-latin1=# select name from kunde where name >= 'ö' and name <= 'ö'
> order by name asc;
> name
> ------
> (0 Zeilen)
>
> Hmm...
The last query is equivalent with:
select name from kunde where name = 'ö'
So I'm not surprised with the result ;-)
What is the locale for backend? Isn't this the real problem?
When you have the problem in psql client feel free to ask
in another pgsql-* mailing list. It isn't odbc related bug.
Maybe we solve your problem but maybe you get the right advice
faster in another list.
Regards,
Luf
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 14:38 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 26+ messages in thread
From: Dave Page @ 2006-03-29 14:38 UTC (permalink / raw)
To: Ludek Finstrle <luf@pzkagis.cz>; Johann Zuschlag <zuschlag2@online.de>; +Cc: Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> -----Original Message-----
> From: Ludek Finstrle [mailto:luf@pzkagis.cz]
> Sent: 29 March 2006 15:35
> To: Johann Zuschlag
> Cc: Hiroshi Inoue; Dave Page; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] psqlODBC-Driver Test / text fields
>
> When you have the problem in psql client feel free to ask
> in another pgsql-* mailing list. It isn't odbc related bug.
> Maybe we solve your problem but maybe you get the right advice
> faster in another list.
Hi Luf,
Johann is trying out some queries in psql to help Hiroshi Inoue track
down a psqlODBC problem (the bug that caused us to release both ANSI and
Unicode builds of the driver).
Regards, Dave
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 14:40 Ludek Finstrle <luf@pzkagis.cz>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 26+ messages in thread
From: Ludek Finstrle @ 2006-03-29 14:40 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Ludek Finstrle <luf@pzkagis.cz>; Johann Zuschlag <zuschlag2@online.de>; Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> > When you have the problem in psql client feel free to ask
> > in another pgsql-* mailing list. It isn't odbc related bug.
> > Maybe we solve your problem but maybe you get the right advice
> > faster in another list.
>
> Johann is trying out some queries in psql to help Hiroshi Inoue track
> down a psqlODBC problem (the bug that caused us to release both ANSI and
> Unicode builds of the driver).
Hello,
maybe I remember it wrong but I remember that there is same problem
in psql client.
Regards,
Luf
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 14:42 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 26+ messages in thread
From: Dave Page @ 2006-03-29 14:42 UTC (permalink / raw)
To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: Johann Zuschlag <zuschlag2@online.de>; Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> -----Original Message-----
> From: Ludek Finstrle [mailto:luf@pzkagis.cz]
> Sent: 29 March 2006 15:40
> To: Dave Page
> Cc: Ludek Finstrle; Johann Zuschlag; Hiroshi Inoue;
> pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] psqlODBC-Driver Test / text fields
>
> > > When you have the problem in psql client feel free to ask
> > > in another pgsql-* mailing list. It isn't odbc related bug.
> > > Maybe we solve your problem but maybe you get the right advice
> > > faster in another list.
> >
> > Johann is trying out some queries in psql to help Hiroshi
> Inoue track
> > down a psqlODBC problem (the bug that caused us to release
> both ANSI and
> > Unicode builds of the driver).
>
> Hello,
>
> maybe I remember it wrong but I remember that there is same problem
> in psql client.
Haven't heard of it. I would think that's the sort of thing that would
get fixed pretty quickly to be honest.
Regards, Dave
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 15:12 Johann Zuschlag <zuschlag2@online.de>
parent: Ludek Finstrle <luf@pzkagis.cz>
0 siblings, 1 reply; 26+ messages in thread
From: Johann Zuschlag @ 2006-03-29 15:12 UTC (permalink / raw)
To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: inoue@tpf.co.jp; dpage@vale-housing.co.uk; pgsql-odbc
Ludek Finstrle schrieb:
>> The last query is equivalent with:
>> select name from kunde where name = 'ö'
>>
>> So I'm not surprised with the result ;-)
>>
>> What is the locale for backend? Isn't this the real problem?
>>
Hi Luf,
sure, that is the same, but the result is 0 lines for both. :-)
test-latin1=# select name from kunde where name = 'ö';
name
------
(0 Zeilen)
the psql driver is definitely better than ever. In my (humble) opinion
we don't need two drivers anymore. Thanks a lot for your work. So far
all my tests with UNICODE, LATIN1 and SQL-ASCII databases seem to work
with the new 7.02.260 driver on Win XP, (i.e. insert, update, select)
My set-up is:
PostgreSQL 8.0X on Debian Sarge
Unicode or LATIN1 or SQL-ASCII Database
locale=de_DE
de_DE.ISO-8859-1 (default)
de_DE.UTF-8
de_DE.UTF-8@euro
de_DE.ISO-8859-15@euro
changing to de_DE didn't change anything, client_encoding didn't help,
since the problem doesn't seem to be related to the driver.
Hiroshi tracked down the problem by doing the same query with the
psql.-client. So you may be right that this an old problem.
regards,
Johann
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 15:22 Ludek Finstrle <luf@pzkagis.cz>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 26+ messages in thread
From: Ludek Finstrle @ 2006-03-29 15:22 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Ludek Finstrle <luf@pzkagis.cz>; Johann Zuschlag <zuschlag2@online.de>; Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> > > > When you have the problem in psql client feel free to ask
> > > > in another pgsql-* mailing list. It isn't odbc related bug.
> > > > Maybe we solve your problem but maybe you get the right advice
> > > > faster in another list.
> > >
> > > Johann is trying out some queries in psql to help Hiroshi
> > Inoue track
> > > down a psqlODBC problem (the bug that caused us to release
> > both ANSI and
> > > Unicode builds of the driver).
> >
> > Hello,
> >
> > maybe I remember it wrong but I remember that there is same problem
> > in psql client.
>
> Haven't heard of it. I would think that's the sort of thing that would
> get fixed pretty quickly to be honest.
Let's try read and it's ancestor:
http://archives.postgresql.org/pgsql-odbc/2006-03/msg00188.php
Regards,
Luf
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 15:34 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 26+ messages in thread
From: Dave Page @ 2006-03-29 15:34 UTC (permalink / raw)
To: Ludek Finstrle <luf@pzkagis.cz>; +Cc: Johann Zuschlag <zuschlag2@online.de>; Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> -----Original Message-----
> From: Ludek Finstrle [mailto:luf@pzkagis.cz]
> Sent: 29 March 2006 16:23
> To: Dave Page
> Cc: Ludek Finstrle; Johann Zuschlag; Hiroshi Inoue;
> pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] psqlODBC-Driver Test / text fields
>
> Let's try read and it's ancestor:
> http://archives.postgresql.org/pgsql-odbc/2006-03/msg00188.php
I'm not sure I understand that that test is actually valid anyway. Consider the test query:
select name from kunde where name >= 'ö';
If 'ö' is 'ö', then isn't the query above mixing single and a multibyte encoding? Ie. It should all be single byte - e.g.
select name from kunde where name >= 'ö' order by name asc;
Or all multibyte (displayed byte by byte) whatever that results in:
s*e*l*e*c*t* *n*a*m*e* *f*r*o*m* *k*u*n*d*e* *w*h*e*r*e* *n*a*m*e* *>*=* *'*ö'*;*
Of course, we all know how well I grok encoding issues :-)
Regards, Dave.
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 15:35 Ludek Finstrle <luf@pzkagis.cz>
parent: Johann Zuschlag <zuschlag2@online.de>
0 siblings, 0 replies; 26+ messages in thread
From: Ludek Finstrle @ 2006-03-29 15:35 UTC (permalink / raw)
To: Johann Zuschlag <zuschlag2@online.de>; +Cc: Ludek Finstrle <luf@pzkagis.cz>; inoue@tpf.co.jp; dpage@vale-housing.co.uk; pgsql-odbc
> >>The last query is equivalent with:
> >>select name from kunde where name = 'ö'
> >>
> >>So I'm not surprised with the result ;-)
> >>
> >>What is the locale for backend? Isn't this the real problem?
>
> sure, that is the same, but the result is 0 lines for both. :-)
It's ok result. I see no 'ö' in data you have posted. I see only
'ösomething'.
> we don't need two drivers anymore. Thanks a lot for your work. So far
It's not my work. I only fixed 08.01 branch since 08.01.0102.
The enahnced branch is Hiroshi (Inoue and Saito) work.
> PostgreSQL 8.0X on Debian Sarge
> Unicode or LATIN1 or SQL-ASCII Database
You tried this all?
> locale=de_DE
I think it could be the problem. You have unicode data but you try
sort it in de_DE.ISO-8859-1.
Could you try change the locale for _backend_ process to de_DE.UTF-8 or
de_DE.UTF-8@euro? (Maybe also in postmaster.conf configuration file
of postgresql). I'm not sure if it isn't even initdb time related.
> de_DE.ISO-8859-1 (default)
> de_DE.UTF-8
> de_DE.UTF-8@euro
> de_DE.ISO-8859-15@euro
>
> changing to de_DE didn't change anything, client_encoding didn't help,
> since the problem doesn't seem to be related to the driver.
I don't speak about psql (client or driver) locale. I speak about
backend locale (and settings in postmaster.conf).
The sort operation is performed in backend process.
I suggest to try ask for this (with psql client problem) in pgsql-general.
Regards,
Luf
^ permalink raw reply [nested|flat] 26+ messages in thread
* Re: psqlODBC-Driver Test / text fields
@ 2006-03-29 15:43 Ludek Finstrle <luf@pzkagis.cz>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 26+ messages in thread
From: Ludek Finstrle @ 2006-03-29 15:43 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Ludek Finstrle <luf@pzkagis.cz>; Johann Zuschlag <zuschlag2@online.de>; Hiroshi Inoue <inoue@tpf.co.jp>; pgsql-odbc
> I'm not sure I understand that that test is actually valid anyway.
...
> Of course, we all know how well I grok encoding issues :-)
I know the encoding issue (UTF8, UNICODE, ...) at same level as you.
My good knowledge ending at single byte encoding.
I see no progress for some time so I hope someone in pgsql-general
(maybe peter_e) could help when the (or similar) problem is in psql
client too.
Regards,
Luf
^ permalink raw reply [nested|flat] 26+ messages in thread
end of thread, other threads:[~2006-03-29 15:43 UTC | newest]
Thread overview: 26+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-27 12:45 psqlODBC-Driver Test / text fields Johann Zuschlag <zuschlag2@online.de>
2006-03-27 12:50 Re: psqlODBC-Driver Test / text fields Dave Page <dpage@vale-housing.co.uk>
2006-03-27 13:00 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-27 15:50 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-27 18:44 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-28 14:01 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-28 14:17 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-28 14:34 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-28 14:54 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-28 15:38 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-28 16:05 ` Campbell, Greg <greg.campbell@us.michelin.com>
2006-03-28 21:33 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-28 21:53 ` Campbell, Greg <greg.campbell@us.michelin.com>
2006-03-29 09:17 ` Marc Herbert <Marc.Herbert@continuent.com>
2006-03-28 16:43 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-28 17:44 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-03-29 13:16 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-29 14:34 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-29 15:12 ` Johann Zuschlag <zuschlag2@online.de>
2006-03-29 15:35 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-29 14:38 Re: psqlODBC-Driver Test / text fields Dave Page <dpage@vale-housing.co.uk>
2006-03-29 14:40 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-29 14:42 Re: psqlODBC-Driver Test / text fields Dave Page <dpage@vale-housing.co.uk>
2006-03-29 15:22 ` Ludek Finstrle <luf@pzkagis.cz>
2006-03-29 15:34 Re: psqlODBC-Driver Test / text fields Dave Page <dpage@vale-housing.co.uk>
2006-03-29 15:43 ` Ludek Finstrle <luf@pzkagis.cz>
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