inconsistent types deduced for parameter
Posted: Tue 19 May 2009 18:03
I am getting the following error when I try to run a query using a TUniSQL with the postgresql provider:
'inconsistent types deduced for parameter $3'
The query is:
INSERT INTO ugmem( groupnum, usernum, grouptype )
SELECT :groupnum, :usernum, :grouptype
WHERE NOT EXISTS( SELECT id FROM ugmem WHERE groupnum = :groupnum AND usernum = :usernum AND grouptype = :grouptype )
If I comment out the WHERE clause, the query runs fine (however it is incorrect).
I noticed a forum post detailing this issue on the TpgQuery and the new UseParamTypes option. Is this option available in the UniDac (TUniSQL) components? If not, how do I get this to work?
Thanks
'inconsistent types deduced for parameter $3'
The query is:
INSERT INTO ugmem( groupnum, usernum, grouptype )
SELECT :groupnum, :usernum, :grouptype
WHERE NOT EXISTS( SELECT id FROM ugmem WHERE groupnum = :groupnum AND usernum = :usernum AND grouptype = :grouptype )
If I comment out the WHERE clause, the query runs fine (however it is incorrect).
I noticed a forum post detailing this issue on the TpgQuery and the new UseParamTypes option. Is this option available in the UniDac (TUniSQL) components? If not, how do I get this to work?
Thanks