From: hmahmood89@googlemail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14448: create table as values - type check skipped
Date: Mon, 05 Dec 2016 14:30:37 +0000
Message-ID: <20161205143037.4377.60754@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14448
Logged by: Hassan Mahmood
Email address: hmahmood89@googlemail.com
PostgreSQL version: 9.6.1
Operating system: Windows 7x64
Description:
drop table if exists product_codes;
create temporary table product_codes as select *
from (
values
('abcdefg'::character varying(20)),
('012345678901234567ABCDEFGHIJKLMN')
) csv_data (product_code);
select *
from product_codes;
I would expect that the type check got applied across all values or that the
value got truncated.
The result column states "character varying(20)". Inserts/Updates/Casts all
truncate as expected.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: hmahmood89@googlemail.com
Subject: Re: BUG #14448: create table as values - type check skipped
In-Reply-To: <20161205143037.4377.60754@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox