Using tclodbc with the revnum
variable containing 77777
,
the following statement gets the error “ERROR: invalid input syntax for integer: "$revnum"
”
$db {insert into (revnum,risetime,settime,sat,passlen,riseges,setges,elevation)
values('$revnum','1111-11-1111:11:11:11','1111-11-1111:11:11','C4','24','QQ','QQ','22');}
But this statement works:
$db {insert into (revnum,risetime,settime,sat,passlen,riseges,setges,elevation)
values('77777','1111-11-11 :11','1111-11-1111:11:11','C4','24','QQ','QQ','22');}
Why wont the the value of the variable revnum
insert into the database?