提交 f901971c 编写于 作者: T Thomas G. Lockhart

Adjust output to reflect changes in tests.

上级 07c1837f
...@@ -42,7 +42,7 @@ initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z ...@@ -42,7 +42,7 @@ initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
QUERY: DROP TABLE temp; QUERY: DROP TABLE temp;
QUERY: CREATE TABLE temp ( QUERY: CREATE TABLE temp (
initial int4 initial int4
) ARCHIVE = light; );
QUERY: ALTER TABLE temp ADD COLUMN a int4; QUERY: ALTER TABLE temp ADD COLUMN a int4;
QUERY: ALTER TABLE temp ADD COLUMN b char16; QUERY: ALTER TABLE temp ADD COLUMN b char16;
QUERY: ALTER TABLE temp ADD COLUMN c text; QUERY: ALTER TABLE temp ADD COLUMN c text;
...@@ -78,7 +78,7 @@ QUERY: INSERT INTO temp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t ...@@ -78,7 +78,7 @@ QUERY: INSERT INTO temp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]', '(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
'1/3', '1,char16', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}'); '1/3', '1,char16', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
WARN:Relation temp does not have attribute k WARN:Relation temp does not have attribute k
QUERY: SELECT * FROM temp[,]; QUERY: SELECT * FROM temp;
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
-------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
(0 rows) (0 rows)
......
...@@ -180,5 +180,41 @@ tf_12_ff_4|f1|f1 ...@@ -180,5 +180,41 @@ tf_12_ff_4|f1|f1
|t |f |t |f
(16 rows) (16 rows)
QUERY: SELECT '' AS "True", BOOLTBL1.*
FROM BOOLTBL1
WHERE f1 IS TRUE;
True|f1
----+--
|t
|t
|t
(3 rows)
QUERY: SELECT '' AS "Not False", BOOLTBL1.*
FROM BOOLTBL1
WHERE f1 IS NOT FALSE;
Not False|f1
---------+--
|t
|t
|t
(3 rows)
QUERY: SELECT '' AS "False", BOOLTBL1.*
FROM BOOLTBL1
WHERE f1 IS FALSE;
False|f1
-----+--
|f
(1 row)
QUERY: SELECT '' AS "Not True", BOOLTBL1.*
FROM BOOLTBL1
WHERE f1 IS NOT TRUE;
Not True|f1
--------+--
|f
(1 row)
QUERY: DROP TABLE BOOLTBL1; QUERY: DROP TABLE BOOLTBL1;
QUERY: DROP TABLE BOOLTBL2; QUERY: DROP TABLE BOOLTBL2;
QUERY: SELECT 'c'::char = 'c'::char AS true;
true
----
t
(1 row)
QUERY: CREATE TABLE CHAR_TBL(f1 char); QUERY: CREATE TABLE CHAR_TBL(f1 char);
QUERY: INSERT INTO CHAR_TBL (f1) VALUES ('a'); QUERY: INSERT INTO CHAR_TBL (f1) VALUES ('a');
QUERY: INSERT INTO CHAR_TBL (f1) VALUES ('A'); QUERY: INSERT INTO CHAR_TBL (f1) VALUES ('A');
......
QUERY: SELECT 'char 16 string'::char16 = 'char 16 string'::char16 AS "True";
True
----
t
(1 row)
QUERY: SELECT 'char 16 string'::char16 = 'char 16 string '::char16 AS "False";
False
-----
f
(1 row)
QUERY: CREATE TABLE CHAR16_TBL(f1 char16); QUERY: CREATE TABLE CHAR16_TBL(f1 char16);
QUERY: INSERT INTO CHAR16_TBL(f1) VALUES ('ABCDEFGHIJKLMNOP'); QUERY: INSERT INTO CHAR16_TBL(f1) VALUES ('ABCDEFGHIJKLMNOP');
QUERY: INSERT INTO CHAR16_TBL(f1) VALUES ('abcdefghijklmnop'); QUERY: INSERT INTO CHAR16_TBL(f1) VALUES ('abcdefghijklmnop');
......
...@@ -3,29 +3,30 @@ QUERY: SELECT relname, relhasindex ...@@ -3,29 +3,30 @@ QUERY: SELECT relname, relhasindex
FROM pg_class FROM pg_class
WHERE relhasindex WHERE relhasindex
ORDER BY relname; ORDER BY relname;
relname |relhasindex relname |relhasindex
-------------+----------- --------------+-----------
bt_c16_heap |t bt_c16_heap |t
bt_f8_heap |t bt_f8_heap |t
bt_i4_heap |t bt_i4_heap |t
bt_txt_heap |t bt_txt_heap |t
fast_emp4000 |t fast_emp4000 |t
hash_c16_heap|t hash_c16_heap |t
hash_f8_heap |t hash_f8_heap |t
hash_i4_heap |t hash_i4_heap |t
hash_txt_heap|t hash_txt_heap |t
ihighway |t ihighway |t
onek |t onek |t
pg_attrdef |t pg_attrdef |t
pg_attribute |t pg_attribute |t
pg_class |t pg_class |t
pg_proc |t pg_description|t
pg_relcheck |t pg_proc |t
pg_trigger |t pg_relcheck |t
pg_type |t pg_trigger |t
road |t pg_type |t
shighway |t road |t
tenk1 |t shighway |t
tenk2 |t tenk1 |t
(22 rows) tenk2 |t
(23 rows)
QUERY: SELECT 'char 16 string'::char16 = 'char 16 string '::char16 AS false;
false
-----
f
(1 row)
QUERY: SELECT 'c'::char = 'c'::char AS true;
true
----
t
(1 row)
QUERY: SELECT 'this is a text string'::text = 'this is a text string'::text AS true; QUERY: SELECT 'this is a text string'::text = 'this is a text string'::text AS true;
true true
---- ----
...@@ -22,3 +10,13 @@ false ...@@ -22,3 +10,13 @@ false
f f
(1 row) (1 row)
QUERY: CREATE TABLE TEXT_TBL (f1 text);
QUERY: INSERT INTO TEXT_TBL VALUES ('doh!');
QUERY: INSERT INTO TEXT_TBL VALUES ('hi de ho neighbor');
QUERY: SELECT '' AS two, * FROM TEXT_TBL;
two|f1
---+-----------------
|doh!
|hi de ho neighbor
(2 rows)
...@@ -454,6 +454,7 @@ bt_f8_heap ...@@ -454,6 +454,7 @@ bt_f8_heap
bt_i4_heap bt_i4_heap
bt_txt_heap bt_txt_heap
c_star c_star
char_tbl
check2_tbl check2_tbl
check_seq check_seq
check_tbl check_tbl
...@@ -503,9 +504,11 @@ stud_emp ...@@ -503,9 +504,11 @@ stud_emp
student student
tenk1 tenk1
tenk2 tenk2
text_tbl
timespan_tbl timespan_tbl
tinterval_tbl tinterval_tbl
toyemp toyemp
varchar_tbl
xacttest xacttest
(65 rows) (68 rows)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册