Strange problem in delphi 2007 with string parameters
Posted: Sun 13 May 2007 14:31
Hi!
i am currently testing our application in delphi 2007 and with the latest 3.20.10 MSSQL dbexpress driver.
I am using the dbexpsda30.dll driver.
I am experiencing som strange behavour with string parameters, the last characters gets cut both when doing Selects and updates against the database.
some examples from DBmonitor, and it looks the same in the sql trace.
update "PRESENTATION" set
"MINFO" = ?
where
"TYP" = ? and
"USER_ID" = ? and
"COMPONENT" = ?
Params
:1 (Memo,IN) =
:2 (String[4],IN) = 'MINF'
:3 (Int32,IN) = 21
:4 (String[8],IN) = 'frmHdpro'
Parameters :2 and :4 are not correct, they should be 'MINFO' and 'frmHdprop'.
another example
select * from EVENTS where TYPE_ = ? AND USER_ID = ?
Params
:1 (String[8],IN) = 'HD_NOTIF'
:2 (Int32,IN) = 21
:1 not correct should be 'HD_NOTIFY'.
I have debugged into dbexpress source and there the parameters seems to be correct so i really don't know where to look more.
I will try to make an easy example to verify this in D2007.
Do you have any clue of what can be the problem?
Best Regards,
Pontus
i am currently testing our application in delphi 2007 and with the latest 3.20.10 MSSQL dbexpress driver.
I am using the dbexpsda30.dll driver.
I am experiencing som strange behavour with string parameters, the last characters gets cut both when doing Selects and updates against the database.
some examples from DBmonitor, and it looks the same in the sql trace.
update "PRESENTATION" set
"MINFO" = ?
where
"TYP" = ? and
"USER_ID" = ? and
"COMPONENT" = ?
Params
:1 (Memo,IN) =
:2 (String[4],IN) = 'MINF'
:3 (Int32,IN) = 21
:4 (String[8],IN) = 'frmHdpro'
Parameters :2 and :4 are not correct, they should be 'MINFO' and 'frmHdprop'.
another example
select * from EVENTS where TYPE_ = ? AND USER_ID = ?
Params
:1 (String[8],IN) = 'HD_NOTIF'
:2 (Int32,IN) = 21
:1 not correct should be 'HD_NOTIFY'.
I have debugged into dbexpress source and there the parameters seems to be correct so i really don't know where to look more.
I will try to make an easy example to verify this in D2007.
Do you have any clue of what can be the problem?
Best Regards,
Pontus