Subject | Re: [IBO] tiboquery & sqltimestamps |
---|---|
Author | Helen Borrie |
Post date | 2003-04-01T23:24:05Z |
At 10:52 PM 1/04/2003 +0000, you wrote:
this by implement BeforeInsert and BeforeUpdate triggers on the tables
involved.
Second, in IB and existing release versions of Firebird, the
timestamping context variable CURRENT_TIMESTAMP delivers .0000 for the
ten-thousandths of a second element of the stored timestamp. You need to
install and invoke the UDF GetExactTimestamp from the FBUDF library to
record a non-zero value for the sub-second element.
around".
you would need to set an EditMask; but I'm assuming that you would make
such a column read-only, so the issue of an EditMask doesn't arise.
For the DisplayFormat, use some variety of elements involving dd (day), mm
(month), yyyy (year), hh (hours), nn (minutes), ss (seconds) and zz
(milliseconds). Several varieties of each are available - see the Delphi
help for FormatDateTime.
Helen
>hi,First, timestamping is meaningless unless it is done on the server. Do
> im running into an issue where i need to timestamp
>every row in a table & the timing needs to be precise down to the
>millisecond
this by implement BeforeInsert and BeforeUpdate triggers on the tables
involved.
Second, in IB and existing release versions of Firebird, the
timestamping context variable CURRENT_TIMESTAMP delivers .0000 for the
ten-thousandths of a second element of the stored timestamp. You need to
install and invoke the UDF GetExactTimestamp from the FBUDF library to
record a non-zero value for the sub-second element.
>however when using tiboquery it doesnt seem to likeCan't comment, since you don't indicate how you are trying to do it.
>queryfield.assqltimestamp & runs into issues when i try
>to insert/update data into the table
>anyone else run into this & is there a workaround.Ditto, can't provide a workaround when we don't know what has to be "worked
around".
>the field shows up as datetime when the fields are boundTo display the full timestamp, you need to set DisplayText. For editing,
>at design time.
you would need to set an EditMask; but I'm assuming that you would make
such a column read-only, so the issue of an EditMask doesn't arise.
For the DisplayFormat, use some variety of elements involving dd (day), mm
(month), yyyy (year), hh (hours), nn (minutes), ss (seconds) and zz
(milliseconds). Several varieties of each are available - see the Delphi
help for FormatDateTime.
Helen