Re: Lexing with different charsets

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Lexing with different charsets
Date: 2004-04-14 08:28:50
Message-ID: Pine.LNX.4.58.0404141021330.7237@sablons.cri.ensmp.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > I cannot see where I could use such a feature.
>
> Applications usually generate queries.

Sure.

> So you can do things like
>
> printf ("SELECT * FROM foo WHERE field1 = _latin1'%s';", my_latin1_data);

Hmmm... I guess the following was too complicated. You need a library
for conversion. You need to take care of conversions.

printf("SELECT * FROM foo WHERE field1 = '%s'",
latin1_to_database_encoding(...));

Well, so this is a great new useful feature indeed, that will help improve
the lexer code a lot;-)

Good luck,

--
Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-04-14 08:36:22 Re: Lexing with different charsets
Previous Message Dennis Bjorklund 2004-04-14 07:58:31 Re: Lexing with different charsets