Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-14 Thread Volkan YAZICI
Hi, On 10/13/05, Tom Lane <[EMAIL PROTECTED]> wrote: > Really, PQfnumber shouldn't do any case folding at all; that's not in > its charter if you ask me. The problem is how to get there from here > without too much compatibility pain. Maybe invent a new routine that > does it right and then depr

Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-12 Thread Bruce Momjian
Tom Lane wrote: > Volkan YAZICI <[EMAIL PROTECTED]> writes: > > Returned column names from the backend were lowercased by the server > > in this or that way. Furthermore, PQfnumber() makes not-quoted strings > > downcasing on the client side and then performs the compare by using > > the results re

Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-12 Thread Tom Lane
Volkan YAZICI <[EMAIL PROTECTED]> writes: > Returned column names from the backend were lowercased by the server > in this or that way. Furthermore, PQfnumber() makes not-quoted strings > downcasing on the client side and then performs the compare by using > the results returned from the backend. T

Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-12 Thread Bruce Momjian
Volkan YAZICI wrote: > On 10/12/05, Bruce Momjian wrote: > > The question mark means we are not sure how to deal with it. I think > > your idea of using quotes to preserve case is a good one. > > I think related TODO is added for that gotcha which was written in > PQfnumber() comments in fe-exec

Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-12 Thread Volkan YAZICI
On 10/12/05, Bruce Momjian wrote: > The question mark means we are not sure how to deal with it. I think > your idea of using quotes to preserve case is a good one. I think related TODO is added for that gotcha which was written in PQfnumber() comments in fe-exec.c: «Downcasing in the frontend m

Re: [HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-11 Thread Bruce Momjian
Volkan YAZICI wrote: > Hi, > > Which way do you suggest to "Prevent libpq's PQfnumber() from > lowercasing the column name" (which is listed as a TODO item). If > column name has quotes around it we're just removing the quotes and > comparing with the related column name. Else, lowercasing the col

[HACKERS] How TODO prevent PQfnumber() from lowercasing?

2005-10-09 Thread Volkan YAZICI
Hi, Which way do you suggest to "Prevent libpq's PQfnumber() from lowercasing the column name" (which is listed as a TODO item). If column name has quotes around it we're just removing the quotes and comparing with the related column name. Else, lowercasing the column name and then comparing. I c