🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #347

Re: E_FAIL with NOT NULL datetime

#347
From: crhras
Date: Fri, 18 Aug 2006 17:12
51 lines
2188 bytes
I should probably post this in a MySQL group, huh ?  Thanks for your 
response, BTW.



"Mark Guerrieri" <mguerrieri@no_spam_verizon.net> wrote in message 
news:44e5ce8e@newsgroups.borland.com...
> What is the back-end database?  Some ODBC drivers (I believe MySQL is 
> among them) have trouble with NULL date values.
>
> Mark
>
> "crhras" <crhras@sbcglobal.net> wrote in message 
> news:44e52431$1@newsgroups.borland.com...
>>
>> Can someone please explain why the following occurs ?
>>
>> The first table gives E_FAIL whenever the table is opened and at least 
>> one record is "000-00-00 00:00:00".  The second table works just fine. 
>> The second table is exactly the same as the first except DTime is 
>> declared as NOT NULL.
>>
>> --
>> -- broken table
>> --
>> CREATE TABLE  tt (
>>  serial            int(10) unsigned NOT NULL auto_increment,
>>  DTime         datetime NOT NULL default '0000-00-00 00:00:00',
>>  val               int,
>>  PRIMARY KEY (serial)
>> )
>> ;
>>
>> --
>> -- good table
>> --
>> CREATE TABLE  tt (
>>  serial            int(10) unsigned NOT NULL auto_increment,
>>  DTime         datetime default '0000-00-00 00:00:00',
>>  val               int,
>>  PRIMARY KEY (serial)
>> )
>> ;
>>
>> Thank you,
>> Curt
>>
>>
>
> 
Technical Details
Message-ID: <44e5f51b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44e52431$1@newsgroups.borland.com> <44e5ce8e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,ab7fdf66c4df4ca4
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "crhras" <crhras@sbcglobal.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <44e52431$1@newsgroups.borland.com> <44e5ce8e@newsgroups.borland.com>
Subject: Re: E_FAIL with NOT NULL datetime
Date: Fri, 18 Aug 2006 12:12:59 -0500
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 75.34.174.119
Message-ID: <44e5f51b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155921179 75.34.174.119 (18 Aug 2006 10:12:59 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail