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 does not handle BOOL correctly
Re: PostgreSql does not handle BOOL correctly [BUG+PATCH] [message #60219 is a reply to message #60218] Fri, 20 October 2023 09:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
After rereading, I think you actually suggest something a little bit different (interpreting C++ bool as Sql text).

Well, I feel bad about that. bool is too close to integers, I do not see it safe to test Value on bool inside and returning something fundamentally different (text literal instead of number literal).

As I said, BOOL is char(1), adjust your SQL. It works this way since 2003, so it is not a bug, feature request at best Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SqlPerformScript bug: Not doing anything if script starts with "BEGIN;" and ends with "END;"
Next Topic: Sqlite3 update
Goto Forum:
  


Current Time: Thu Aug 21 18:33:52 CEST 2025

Total time taken to generate the page: 0.05415 seconds