Re: update and tcl/tk

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bruno(dot)leveque(at)libertysurf(dot)fr, pgsql-bugs(at)postgresql(dot)org
Subject: Re: update and tcl/tk
Date: 2001-01-01 23:45:21
Message-ID: 2125.978392721@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> [ via libpgtcl, the given query updates no rows ]
> If I update directly
> set datestyle to 'postgres, european'; update cheque set ok='x' where num_cpte=8 and date='09-11-2000' and nb_cheq=4919351 and lib like 'gynco' and ok='' and deb=200.00 and cred=0.0
> It's well.

I am guessing that the critical point here is the presence of a
non-ASCII character in the clause "lib like 'gynco'". Does the
query work from Tcl as long as you specify only regular ASCII characters
in the LIKE phrase?

Assuming that it does, I think that you might be looking at a
mistranslation of Tcl's internal UTF-8 character set into the character
set used by the Postgres backend. We had a recent report that that
translation didn't seem to be working right with recent Tcl releases,
but I have no details nor a fix at the moment.

What Tcl version are you using, anyway?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-01-01 23:56:15 Re: Table corruption on drop
Previous Message Tom Lane 2001-01-01 21:40:26 Re: vacuum analyze fails with latest cvs version