Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » PostgreSQL fieldname case bug
PostgreSQL fieldname case bug [message #9689] Fri, 25 May 2007 00:16 Go to previous message
zsolt is currently offline  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));
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SqlFormat() bug with Date and Time types
Next Topic: How to access a firebird database ?
Goto Forum:
  


Current Time: Tue May 14 05:23:06 CEST 2024

Total time taken to generate the page: 0.01605 seconds