Home » U++ Library support » U++ SQL » PostgreSQL fieldname case bug
PostgreSQL fieldname case bug [message #9689] |
Fri, 25 May 2007 00:16 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
The problem is that postgresql returns field names in lower case.
In the original version of PostgreSQL classes, there was a ToUpper() on field names, allowing using expressions like sql[FIELD_NAME].
In current version, ToUpper() disappeared, so I'm unable to get fields by name from a result set.
Put back the original version please.
in bool PostgreSQLConnection::Execute() currently it is:
f.name = PQfname(result, i);
but should be
f.name = ToUpper(PQfname(result, i));
|
|
|
Goto Forum:
Current Time: Sat Jun 08 08:53:12 CEST 2024
Total time taken to generate the page: 0.01899 seconds
|