mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.53 1998/06/15 19:30:25 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.54 1998/06/16 07:29:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1264,7 +1264,8 @@ PQfnumber(PGresult *res, const char *field_name)
|
||||
}
|
||||
else
|
||||
for (i = 0; field_case[i]; i++)
|
||||
if (isupper(field_case[i]))
|
||||
if (isascii((unsigned char)field_case[i]) &&
|
||||
isupper(field_case[i]))
|
||||
field_case[i] = tolower(field_case[i]);
|
||||
|
||||
for (i = 0; i < res->numAttributes; i++)
|
||||
@ -1466,8 +1467,6 @@ PQgetvalue(PGresult *res, int tup_num, int field_num)
|
||||
return res->tuples[tup_num][field_num].value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* PQgetlength:
|
||||
returns the length of a field value in bytes. If res is binary,
|
||||
i.e. a result of a binary portal, then the length returned does
|
||||
|
Reference in New Issue
Block a user