Commit f15eeff1 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Modify to reflect changes in boolean input behavior (rejects bad input

 rather than assuming FALSE).
parent ac357fb4
...@@ -98,8 +98,11 @@ QUERY: CREATE TABLE BOOLTBL2 (f1 bool); ...@@ -98,8 +98,11 @@ QUERY: CREATE TABLE BOOLTBL2 (f1 bool);
QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('f'::bool); QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('f'::bool);
QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('false'::bool); QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('false'::bool);
QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('False'::bool); QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('False'::bool);
QUERY: INSERT INTO BOOLTBL2 (f1) VALUES ('FALSE'::bool);
QUERY: INSERT INTO BOOLTBL2 (f1) QUERY: INSERT INTO BOOLTBL2 (f1)
VALUES ('XXX'::bool); VALUES ('XXX'::bool);
WARN:Invalid input string 'XXX'
QUERY: SELECT '' AS f_4, BOOLTBL2.*; QUERY: SELECT '' AS f_4, BOOLTBL2.*;
f_4|f1 f_4|f1
---+-- ---+--
......
-- --
-- boolean.source -- boolean.source
-- --
-- $Header: /cvsroot/pgsql/src/test/regress/sql/boolean.sql,v 1.3 1997/05/09 03:26:43 scrappy Exp $ -- $Header: /cvsroot/pgsql/src/test/regress/sql/boolean.sql,v 1.4 1997/10/25 06:02:33 thomas Exp $
-- --
-- --
...@@ -70,7 +70,10 @@ INSERT INTO BOOLTBL2 (f1) VALUES ('false'::bool); ...@@ -70,7 +70,10 @@ INSERT INTO BOOLTBL2 (f1) VALUES ('false'::bool);
INSERT INTO BOOLTBL2 (f1) VALUES ('False'::bool); INSERT INTO BOOLTBL2 (f1) VALUES ('False'::bool);
-- this evaluates to a false value INSERT INTO BOOLTBL2 (f1) VALUES ('FALSE'::bool);
-- this is now an invalid expression
-- pre-v6.3 this evaluated to false - thomas 1997-10-23
INSERT INTO BOOLTBL2 (f1) INSERT INTO BOOLTBL2 (f1)
VALUES ('XXX'::bool); VALUES ('XXX'::bool);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment