comparisons correctly. The psql monitor converts all table and field
names to lower case. If the PQfnumber function is called with a mixed
case name, it will always return -1.
Bahman Rafatjoo
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.71 1998/11/29 01:53:54 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.72 1999/02/03 20:19:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
for (i = 0; i < res->numAttributes; i++)
{
- if (strcmp(field_name, res->attDescs[i].name) == 0)
+ if (strcmp(field_case, res->attDescs[i].name) == 0)
{
free(field_case);
return i;