From: | "Robert Fritzsching" <robert(dot)fritzsching(at)gmx(dot)net> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #4008: accepts invalid input with domaintypes and outer joins |
Date: | 2008-03-03 19:50:01 |
Message-ID: | 200803031950.m23Jo1I0080715@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 4008
Logged by: Robert Fritzsching
Email address: robert(dot)fritzsching(at)gmx(dot)net
PostgreSQL version: 8.0.3, 8.3.0
Operating system: Windows XP, Linux Debian SID
Description: accepts invalid input with domaintypes and outer joins
Details:
Hi developer,
I found a bug:
If I insert data in a table with left outer join, I get no error even though
the domain type should trigger an error.
To reproduce the bug:
<!--
CREATE DOMAIN domname AS integer NOT NULL;
CREATE TABLE tblPrimary (colOtherColumn integer NOT NULL);
INSERT INTO tblPrimary (colOtherColumn) VALUES (10);
INSERT INTO tblPrimary (colOtherColumn) VALUES (20);
INSERT INTO tblPrimary (colOtherColumn) VALUES (30);
INSERT INTO tblPrimary (colOtherColumn) VALUES (40);
CREATE TABLE tblJoin (colWithDomname domname, colOtherColumn integer);
INSERT INTO tblJoin (colWithDomname, colOtherColumn) VALUES (1, 10);
INSERT INTO tblJoin (colWithDomname, colOtherColumn) VALUES (2, 20);
INSERT INTO tblJoin (colWithDomname, colOtherColumn) VALUES (3, 30);
CREATE TABLE tblResult (colWithDomname domname, colOtherColumn integer);
-->
finally this statement should failed:
<!--
INSERT INTO tblResult (SELECT tblJoin.colWithDomname,
tblPrimary.colOtherColumn FROM tblPrimary LEFT JOIN tblJoin
USING(colOtherColumn));
-->
The problem is the outer join - inner join or direct inserts produce an
error.
Thanks, Robert Fritzsching
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2008-03-03 21:14:02 | Re: [PATCHES] Incomplete docs for restore_command for hot standby |
Previous Message | David Schweikert | 2008-03-03 19:09:37 | Re: BUG #4006: pg_ctl assumes that all config files lie in data_directory |