diff options
Diffstat (limited to 'src/test/regress/expected/int2-i386-netbsd.out')
| -rw-r--r-- | src/test/regress/expected/int2-i386-netbsd.out | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/src/test/regress/expected/int2-i386-netbsd.out b/src/test/regress/expected/int2-i386-netbsd.out new file mode 100644 index 0000000000..c35f1737eb --- /dev/null +++ b/src/test/regress/expected/int2-i386-netbsd.out @@ -0,0 +1,206 @@ +QUERY: CREATE TABLE INT2_TBL(f1 int2); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('0'); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('1234'); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('-1234'); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('34.5'); +ERROR: pg_atoi: error in "34.5": can't parse ".5" +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('32767'); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('-32767'); +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('100000'); +ERROR: pg_atoi: error reading "100000": Result too large +QUERY: INSERT INTO INT2_TBL(f1) VALUES ('asdf'); +ERROR: pg_atoi: error in "asdf": can't parse "asdf" +QUERY: SELECT '' AS five, INT2_TBL.*; +five| f1 +----+------ + | 0 + | 1234 + | -1234 + | 32767 + |-32767 +(5 rows) + +QUERY: SELECT '' AS four, i.* FROM INT2_TBL i WHERE i.f1 <> '0'::int2; +four| f1 +----+------ + | 1234 + | -1234 + | 32767 + |-32767 +(4 rows) + +QUERY: SELECT '' AS four, i.* FROM INT2_TBL i WHERE i.f1 <> '0'::int4; +four| f1 +----+------ + | 1234 + | -1234 + | 32767 + |-32767 +(4 rows) + +QUERY: SELECT '' AS one, i.* FROM INT2_TBL i WHERE i.f1 = '0'::int2; +one|f1 +---+-- + | 0 +(1 row) + +QUERY: SELECT '' AS one, i.* FROM INT2_TBL i WHERE i.f1 = '0'::int4; +one|f1 +---+-- + | 0 +(1 row) + +QUERY: SELECT '' AS two, i.* FROM INT2_TBL i WHERE i.f1 < '0'::int2; +two| f1 +---+------ + | -1234 + |-32767 +(2 rows) + +QUERY: SELECT '' AS two, i.* FROM INT2_TBL i WHERE i.f1 < '0'::int4; +two| f1 +---+------ + | -1234 + |-32767 +(2 rows) + +QUERY: SELECT '' AS three, i.* FROM INT2_TBL i WHERE i.f1 <= '0'::int2; +three| f1 +-----+------ + | 0 + | -1234 + |-32767 +(3 rows) + +QUERY: SELECT '' AS three, i.* FROM INT2_TBL i WHERE i.f1 <= '0'::int4; +three| f1 +-----+------ + | 0 + | -1234 + |-32767 +(3 rows) + +QUERY: SELECT '' AS two, i.* FROM INT2_TBL i WHERE i.f1 > '0'::int2; +two| f1 +---+----- + | 1234 + |32767 +(2 rows) + +QUERY: SELECT '' AS two, i.* FROM INT2_TBL i WHERE i.f1 > '0'::int4; +two| f1 +---+----- + | 1234 + |32767 +(2 rows) + +QUERY: SELECT '' AS three, i.* FROM INT2_TBL i WHERE i.f1 >= '0'::int2; +three| f1 +-----+----- + | 0 + | 1234 + |32767 +(3 rows) + +QUERY: SELECT '' AS three, i.* FROM INT2_TBL i WHERE i.f1 >= '0'::int4; +three| f1 +-----+----- + | 0 + | 1234 + |32767 +(3 rows) + +QUERY: SELECT '' AS one, i.* FROM INT2_TBL i WHERE (i.f1 % '2'::int2) = '1'::int2; +one| f1 +---+----- + |32767 +(1 row) + +QUERY: SELECT '' AS three, i.* FROM INT2_TBL i WHERE (i.f1 % '2'::int4) = '0'::int2; +three| f1 +-----+----- + | 0 + | 1234 + |-1234 +(3 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 * '2'::int2 AS x FROM INT2_TBL i; +five| f1| x +----+------+----- + | 0| 0 + | 1234| 2468 + | -1234|-2468 + | 32767| -2 + |-32767| 2 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 * '2'::int4 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| 0 + | 1234| 2468 + | -1234| -2468 + | 32767| 65534 + |-32767|-65534 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 + '2'::int2 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| 2 + | 1234| 1236 + | -1234| -1232 + | 32767|-32767 + |-32767|-32765 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 + '2'::int4 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| 2 + | 1234| 1236 + | -1234| -1232 + | 32767| 32769 + |-32767|-32765 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 - '2'::int2 AS x FROM INT2_TBL i; +five| f1| x +----+------+----- + | 0| -2 + | 1234| 1232 + | -1234|-1236 + | 32767|32765 + |-32767|32767 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 - '2'::int4 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| -2 + | 1234| 1232 + | -1234| -1236 + | 32767| 32765 + |-32767|-32769 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 / '2'::int2 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| 0 + | 1234| 617 + | -1234| -617 + | 32767| 16383 + |-32767|-16383 +(5 rows) + +QUERY: SELECT '' AS five, i.f1, i.f1 / '2'::int4 AS x FROM INT2_TBL i; +five| f1| x +----+------+------ + | 0| 0 + | 1234| 617 + | -1234| -617 + | 32767| 16383 + |-32767|-16383 +(5 rows) + |
