U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Some queries return incorrect datatypes with SqLite
Re: Some queries return incorrect datatypes with SqLite [message #55767 is a reply to message #55728] Fri, 11 December 2020 14:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Alboni wrote on Thu, 03 December 2020 18:56
Hello, I see some issue with SqLite3 lately that didn't exist before.

They have to do with the datatype of the results of a query.

issue 1 : SqlMax(some time column) returns WSTRING_V result instead of TIME_V
issue 2 : Selecting a BOOL column also returns WSTRING_V result instead of BOOL_V

again, it only applies to SqLite, on MySql it works correctly

I enclosed an example


BOOL behaviour is as expected (BOOL in .sch is always emulated by text column to be consistent across all DBs).

With SqlMax it seems we are simply out of luck:

https://www.sqlite.org/c3ref/column_decltype.html

Impossible to do better there I am afraid Sad

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: libpq-fe.h in Alpine Linux
Next Topic: MySqlSession Close and Reconnect crashes Application
Goto Forum:
  


Current Time: Sun Apr 26 12:00:38 GMT+2 2026

Total time taken to generate the page: 0.00468 seconds