Home » Developing U++ » U++ Developers corner » Date emulation for Sqlite
Re: Date emulation for Sqlite [message #5295 is a reply to message #5293] |
Tue, 12 September 2006 20:33   |
 |
mirek
Messages: 14264 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Tue, 12 September 2006 12:28 | My problem with this special double is that it would break two things:
1. Internal sqlite date operations as Ulti pointed to that
2. the readability of the result of a simple sql select.
I don't know well the logic of sch files yet, but wouldn't it be possible to use them to get the type of a column?
|
1. can be to large degree solved by SqlExp. In fact, it is "timestamp" type in disguise...
2. OK, this has not come to my mind, that is valid concern. OTOH, it affects non-U++ tools only. In U++, you would be able to get correct dates only.
What about to be a little crazy and encode Date(2006, 9, 12) as 0.20060912e300 ? 
Anyway, any other ideas how to store Date into Sqlite?
The only other one that I have is to store it as string with prefix - that however would mean to introduce some trouble to regular strings as well.
Well, I guess I owe the reason why that is so important. The thing to solve is that you cannot now with Sqlite associate EditDate with Sqlite column. Especially troublesome with SqlCtrls or SqlArray.
Mirek
|
|
|
 |
|
Date emulation for Sqlite
By: mirek on Tue, 12 September 2006 17:37
|
 |
|
Re: Date emulation for Sqlite
By: Ulti on Tue, 12 September 2006 18:20
|
 |
|
Re: Date emulation for Sqlite
By: zsolt on Tue, 12 September 2006 18:28
|
 |
|
Re: Date emulation for Sqlite
By: mirek on Tue, 12 September 2006 20:33
|
 |
|
Re: Date emulation for Sqlite
By: zsolt on Tue, 12 September 2006 20:57
|
 |
|
Re: Date emulation for Sqlite
By: mirek on Tue, 12 September 2006 21:01
|
 |
|
Re: Date emulation for Sqlite
By: zsolt on Thu, 14 September 2006 11:02
|
 |
|
Re: Date emulation for Sqlite
By: zsolt on Thu, 14 September 2006 11:26
|
 |
|
Re: Date emulation for Sqlite
By: mirek on Fri, 15 September 2006 14:18
|
 |
 |
Re: Date emulation for Sqlite
By: fabio on Sun, 26 November 2006 18:07
|
 |
|
Re: Date emulation for Sqlite
By: zsolt on Sun, 26 November 2006 18:24
|
 |
|
Re: Date emulation for Sqlite
By: unodgs on Tue, 12 September 2006 20:07
|
Goto Forum:
Current Time: Wed Jul 02 17:09:03 CEST 2025
Total time taken to generate the page: 0.02830 seconds
|