 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tim Guest
|
Posted: Mon Jan 26, 2004 10:03 am Post subject: mysql dates |
|
|
I have asked this before but although I have found a work round, I am still
curious about the problem:
If you use a normal SQLConnection/SQLQuery/DataSource to connect to a MySQL
database table, then any blank date field will lead to a '0.0 is not a valid
timestamp' error if a DataControl component is connected to the DataSource.
I can get round this by making the default value something like '0001-01-01'
and then use the OnGetText method of the field to decide if the date is
valid or not, but it's not exactly neat.
If using a standard TQuery with a Paradox table, a blank is properly
recognised as a blank and is displayed as such, but why an SQLQuery cannot
recognise a database blank as such I don't know.
Any ideas?
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|