BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mysql dates

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Tim
Guest





PostPosted: Mon Jan 26, 2004 10:03 am    Post subject: mysql dates Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.