Hey everyone.
It's been a while since i've dropped by.
This seems to be the right place for a dbi question these days.
I have this sql statement:
sample execution:
The error that I get:
[ATI][OpenRDA ODBC]Invalid Value XoType:12 for column:lowwarningvalue with XoType:8. (SQL-26000)(DBD: st_execute/SQLExecute err=-1)
Not much code i know.
This is but a small piece in a really long script.
The error recieved indicates an invalid type.
ie it's expecting the value to be a number (zero in this case) and interpreting the recieved value to actually be
a capital letter O.
You can see in the query that i never handle the actual
data. The manufactures of the software, who's database we are connected to,
insists that my script is 'modifing' that data somehow.
(Only zeros though) all other non-zero numbers work just fine.
I have even split this sql statement into the 3
individual queries, and checked the data from the
select queries before passing it to the update query.
The returned values are indeed numbers, not letters.
So this error should not exist.
My question is this, has anyone ever heard of the dbi module altering data ?
Even something as simple as auto inserting single
tic marks around data ?
I've never heard of this, and the dbi module has always
worked flawlessly for me.
The database in question, is not an access or sql server db.
It's their own proprietary db, but registers itself with
windows as a system DSN.
(Call it what you want, but the table structure is the same.
hehe)
Any thoughts on this ?
TIA
crackn101
It's been a while since i've dropped by.
This seems to be the right place for a dbi question these days.
I have this sql statement:
Code:
my($SQL_BOTH) = "UPDATE
efmserv_pcs.pcs_header_record
SET
highwarninggnsid = ?,
highwarningvalue =
(SELECT Value FROM efmserv_uis.CurrentValues WHERE PointIdLong=?),
lowwarninggnsid = ?,
lowwarningvalue =
(SELECT Value FROM efmserv_uis.CurrentValues WHERE PointIdLong=?)
WHERE efmserv_pcs.pcs_header_record.pointidlong=?;";
$stboth = $dbh->prepare( $SQL_BOTH );
Code:
$stboth->execute(HIALARM,HIP_setpoint, LOALARM,LOP_setpoint, FACILITY_PRESSURE);
[ATI][OpenRDA ODBC]Invalid Value XoType:12 for column:lowwarningvalue with XoType:8. (SQL-26000)(DBD: st_execute/SQLExecute err=-1)
Not much code i know.
This is but a small piece in a really long script.
The error recieved indicates an invalid type.
ie it's expecting the value to be a number (zero in this case) and interpreting the recieved value to actually be
a capital letter O.
You can see in the query that i never handle the actual
data. The manufactures of the software, who's database we are connected to,
insists that my script is 'modifing' that data somehow.
(Only zeros though) all other non-zero numbers work just fine.
I have even split this sql statement into the 3
individual queries, and checked the data from the
select queries before passing it to the update query.
The returned values are indeed numbers, not letters.
So this error should not exist.
My question is this, has anyone ever heard of the dbi module altering data ?
Even something as simple as auto inserting single
tic marks around data ?
I've never heard of this, and the dbi module has always
worked flawlessly for me.
The database in question, is not an access or sql server db.
It's their own proprietary db, but registers itself with
windows as a system DSN.
(Call it what you want, but the table structure is the same.
Any thoughts on this ?
TIA
crackn101