New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamp parameters of stored procedures get assigned as date [ODBC27] #28
Comments
Modified by: @alexpotapchenkoassignee: Vladimir Tsvigun [ praktik ] => Alexander Potapchenko [ lightfore ] |
Commented by: @alexpotapchenko It is not a bug of ODBC driver, It is ADO trouble. You need the following code: |
Modified by: @alexpotapchenkostatus: Open [ 1 ] => Resolved [ 5 ] resolution: Won't Fix [ 2 ] Fix Version: 2.0 Beta [ 10043 ] |
Modified by: @alexpotapchenkostatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: Ľubomír Herda (lubomir) The bug is in ADODB unit (adodb.pas). Solution: Replace original code by fixed code (search all "Fix" word in text). ...
end; |
Submitted by: Milan Babuskov (babuskov)
I have Delphi code like this:
storedProc: TADOStoredProc;
storedProc := TADOStoredProc.Create(nil);
try
with storedProc do
begin
ProcedureName := 'SetMyTime';
The call succeeds, but only date part is written into database. Here's how the stored procedure looks like:
create table t1 ( x integer, tm timestamp );
insert into t1 (x, tm) values (1, current_timestamp);
create procedure SetMyTime ( id integer, mytime timestamp )
as
begin
update t1 set tm = :mytime where x = :id;
end
The text was updated successfully, but these errors were encountered: