Inconsistent types deduced for parameter $2
Posted: Wed 22 Apr 2009 15:49
Hello,
I have a TPgSQL like this:
But when I try to exec it then I receive an 'Inconsistent types deduced for parameter $2'.
I have set parameters types manually too, but same error.
Any idea ?
Table definition:
where domains mwi.co and mwi.ca are specified on this way:
mwi.co varchar(12)
mwi.ca numeric(13)
I have a TPgSQL like this:
Code: Select all
INSERT INTO mwi.artprov
SELECT :PEM, :PCO, :PPR, :PCA
WHERE NOT EXISTS
(SELECT TRUE
FROM mwi.artprov
WHERE
em = :PEM
AND co = :PCO
AND pr = :PPR
AND ca = :PCD);
I have set parameters types manually too, but same error.
Any idea ?
Table definition:
Code: Select all
CREATE TABLE mwi.artprov (
em numeric(1) NOT NULL,
co mwi.co NOT NULL,
pr numeric(5) NOT NULL,
ca mwi.ca NOT NULL,
mwi.co varchar(12)
mwi.ca numeric(13)