Subject | Re: [ib-support] XTG ODBC driver... |
---|---|
Author | Helen Borrie |
Post date | 2003-05-05T06:29:48Z |
At 11:52 PM 4/05/2003 -0400, you wrote:
Sorry, I told you wrongly about the hyphenated format. It's the ~~ dotted
~~ format you use to guarantee correct interpretation of dd.mm.yyyy.
must be OK.
and in the dd-MMM-yyyy literal format.
then the driver has a problem:
dd.mm.yy or dd.mm.yyyy
mm/dd/yy or mm/dd/yyyy
yyyy-mm-dd or yyyymmdd (it should accept either of those)
dd-MMM-yyyy
Did you try yyyymmdd? If not, I suggest you do, since the driver was
written by Czechs and I *think* this is the standard date format in the
Czech Republic - by which I mean that, no matter what other formats have
been tested, one would suppose that they tested *that* one.
You do know that date literals must be enclosed in SINGLE quotes, right?
Sorry for the misleading comments in the previous reply...
heLen
Sorry, I told you wrongly about the hyphenated format. It's the ~~ dotted
~~ format you use to guarantee correct interpretation of dd.mm.yyyy.
>If I try to insert a date like "31-07-1995", isql returns an errorYup.
>"conversion error from string..."
>If I enter a date like "07-30-1995", FB accepts the record, and a selectIt *should* be a fluke but, if you don't get a conversion error, then it
>returns a "1995-07-30".
must be OK.
>If I enter a date like "1995-07-30", FB accepts the input, and a selectYES. To my knowledge, IB/Fb accept hyphens in this (ISO) literal format
>returns "1995-07-30".
and in the dd-MMM-yyyy literal format.
>If I enter a date like "30.07.1995", FB accepts the input, and a selectCorrect, that's what I was trying to say before, except my mind went. :-(
>returns "1995-07-30".
>If I use my Access 2000 front end to enter data to the FB database throughIf the driver isn't interpreting the following literal strings correctly,
>the XTG ODBC driver, none of the above formats is considered within range.
then the driver has a problem:
dd.mm.yy or dd.mm.yyyy
mm/dd/yy or mm/dd/yyyy
yyyy-mm-dd or yyyymmdd (it should accept either of those)
dd-MMM-yyyy
Did you try yyyymmdd? If not, I suggest you do, since the driver was
written by Czechs and I *think* this is the standard date format in the
Czech Republic - by which I mean that, no matter what other formats have
been tested, one would suppose that they tested *that* one.
You do know that date literals must be enclosed in SINGLE quotes, right?
Sorry for the misleading comments in the previous reply...
heLen