Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Erik Heimdahl — — source: Informix-list mailing list archive (1991-1998)
I have a weird problem with a datetime host-variable (ESQL/C - 5.08 for SOLARIS). I use it as:
void foo(){
$datetime year to fraction(5) stWhen;
$char szWhen[26];
dtcurrent( &tWhen);
dttoasc( &tWhen, szWhen);
$insert into t1( :tWhen);
return_to_user_and_log( szwhen);
}
Most of the time, calling foo() works just fine, but sometimes I get the error:
'-1263 A field in a datetime or interval is out of range.'
and my log produces:
[1997-06-04 15:02:31.8200+]
instead of:
[1997-06-04 15:02:31.82000]
as I expect it to. Where does the '+' sign come from ??
Anybody seen anything like this, please let me know.
/erik
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.