Re: [HACKERS] conversion problems with domains

2003-03-22 Thread Tom Lane
Andreas Pflug [EMAIL PROTECTED] writes: PostgreSQL 7.3.2 CREATE DOMAIN testdom AS int4; CREATE TABLE testtab(testcol testdom); INSERT INTO testtab VALUES (1); INSERT INTO testtab VALUES (2); VACUUM ANALYZE testtab; SELECT * FROM testtab WHERE testcol 1; I've applied a patch to fix this.

[HACKERS] conversion problems with domains

2003-03-21 Thread Andreas Pflug
PostgreSQL 7.3.2 CREATE DOMAIN testdom AS int4; CREATE TABLE testtab(testcol testdom); INSERT INTO testtab VALUES (1); INSERT INTO testtab VALUES (2); VACUUM ANALYZE testtab; SELECT * FROM testtab WHERE testcol 1; The select will give ERROR: convert_numeric_to_scalar: unsupported type