Changing from .assqltimestamp to .asdatetime
Posted: Tue 04 Oct 2011 13:13
Under Delphi 7 our apps worked equally with Oracle,
SQL Server, IB and Firebird. To do so required filling
datetime parameters thus:
q.parambyname('adate').assqltimestamp:= datetimetosqltimestamp(d);
Because using .asdatetime gave numerous problems in D7.
With unidac under Delphi2010 we have found the opposite.
Using .assqltimestamp does not smoothly work across these
dbtypes at this time.
BUT - returning to .asdatetime seems to work slick as
a whistle.
So we are changing back to assignments throughout:
q.parambyname('adate').asdatetime:= d;
Hope this helps,
tonyM
(to hold our datetimes we use
timestamp in IB and FB
datetime in sql server
date in oracle )
SQL Server, IB and Firebird. To do so required filling
datetime parameters thus:
q.parambyname('adate').assqltimestamp:= datetimetosqltimestamp(d);
Because using .asdatetime gave numerous problems in D7.
With unidac under Delphi2010 we have found the opposite.
Using .assqltimestamp does not smoothly work across these
dbtypes at this time.
BUT - returning to .asdatetime seems to work slick as
a whistle.
So we are changing back to assignments throughout:
q.parambyname('adate').asdatetime:= d;
Hope this helps,
tonyM
(to hold our datetimes we use
timestamp in IB and FB
datetime in sql server
date in oracle )