[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

ODBC error with time field parameters in delphi

Asked by kifah in Delphi Components, Delphi Database, Oracle HCM

Tags: Delphi 2007

Hi,
i migrate an application from MSSQL server to oracle, i am using ADO to connect to oracle, and I am using ODBC for the connection string, the ODBC oracle driver I am using is 10.0.2.3 (the latest one available at ORACLE website)...
everything works perfect except the time fields.....

if I use any SQL statment with time parameters, it dose not work properly

ex: INSERT INTO MYTABLE (ID, MYTIME, MYDATE, MYDATETIME) VALUES(:ID, :MYTIME, :MYDATE, :MYDATETIME)

when I execute this sql statment, the record is added but always the time is 0... the date is correct.
but if i use normal adodataset and i use adodataset.append - adodataset.fieldbyname... it works and will save teh time

as well this if I use the SELECt statment
ex: select * from mytable where mytime >= :mytime
the result will be all records.... becasue as I think the ODBC did not accept the time and it put it as 0.

any help please

[+][-]05/26/09 06:58 PM, ID: 24479425Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/09 08:21 PM, ID: 24543336Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/09 01:12 AM, ID: 24562161Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/06/09 10:25 AM, ID: 24563643Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/09/09 12:25 AM, ID: 24578825Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_4_20070622