]> granicus.if.org Git - postgresql/blob - src/test/regress/expected/oid.out
Don't allow logging in with empty password.
[postgresql] / src / test / regress / expected / oid.out
1 --
2 -- OID
3 --
4 CREATE TABLE OID_TBL(f1 oid);
5 INSERT INTO OID_TBL(f1) VALUES ('1234');
6 INSERT INTO OID_TBL(f1) VALUES ('1235');
7 INSERT INTO OID_TBL(f1) VALUES ('987');
8 INSERT INTO OID_TBL(f1) VALUES ('-1040');
9 INSERT INTO OID_TBL(f1) VALUES ('99999999');
10 INSERT INTO OID_TBL(f1) VALUES ('5     ');
11 INSERT INTO OID_TBL(f1) VALUES ('   10  ');
12 -- leading/trailing hard tab is also allowed
13 INSERT INTO OID_TBL(f1) VALUES ('         15      ');
14 -- bad inputs
15 INSERT INTO OID_TBL(f1) VALUES ('');
16 ERROR:  invalid input syntax for type oid: ""
17 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('');
18                                         ^
19 INSERT INTO OID_TBL(f1) VALUES ('    ');
20 ERROR:  invalid input syntax for type oid: "    "
21 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('    ');
22                                         ^
23 INSERT INTO OID_TBL(f1) VALUES ('asdfasd');
24 ERROR:  invalid input syntax for type oid: "asdfasd"
25 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('asdfasd');
26                                         ^
27 INSERT INTO OID_TBL(f1) VALUES ('99asdfasd');
28 ERROR:  invalid input syntax for type oid: "99asdfasd"
29 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('99asdfasd');
30                                         ^
31 INSERT INTO OID_TBL(f1) VALUES ('5    d');
32 ERROR:  invalid input syntax for type oid: "5    d"
33 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('5    d');
34                                         ^
35 INSERT INTO OID_TBL(f1) VALUES ('    5d');
36 ERROR:  invalid input syntax for type oid: "    5d"
37 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('    5d');
38                                         ^
39 INSERT INTO OID_TBL(f1) VALUES ('5    5');
40 ERROR:  invalid input syntax for type oid: "5    5"
41 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('5    5');
42                                         ^
43 INSERT INTO OID_TBL(f1) VALUES (' - 500');
44 ERROR:  invalid input syntax for type oid: " - 500"
45 LINE 1: INSERT INTO OID_TBL(f1) VALUES (' - 500');
46                                         ^
47 INSERT INTO OID_TBL(f1) VALUES ('32958209582039852935');
48 ERROR:  value "32958209582039852935" is out of range for type oid
49 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('32958209582039852935');
50                                         ^
51 INSERT INTO OID_TBL(f1) VALUES ('-23582358720398502385');
52 ERROR:  value "-23582358720398502385" is out of range for type oid
53 LINE 1: INSERT INTO OID_TBL(f1) VALUES ('-23582358720398502385');
54                                         ^
55 SELECT '' AS six, * FROM OID_TBL;
56  six |     f1     
57 -----+------------
58      |       1234
59      |       1235
60      |        987
61      | 4294966256
62      |   99999999
63      |          5
64      |         10
65      |         15
66 (8 rows)
67
68 SELECT '' AS one, o.* FROM OID_TBL o WHERE o.f1 = 1234;
69  one |  f1  
70 -----+------
71      | 1234
72 (1 row)
73
74 SELECT '' AS five, o.* FROM OID_TBL o WHERE o.f1 <> '1234';
75  five |     f1     
76 ------+------------
77       |       1235
78       |        987
79       | 4294966256
80       |   99999999
81       |          5
82       |         10
83       |         15
84 (7 rows)
85
86 SELECT '' AS three, o.* FROM OID_TBL o WHERE o.f1 <= '1234';
87  three |  f1  
88 -------+------
89        | 1234
90        |  987
91        |    5
92        |   10
93        |   15
94 (5 rows)
95
96 SELECT '' AS two, o.* FROM OID_TBL o WHERE o.f1 < '1234';
97  two | f1  
98 -----+-----
99      | 987
100      |   5
101      |  10
102      |  15
103 (4 rows)
104
105 SELECT '' AS four, o.* FROM OID_TBL o WHERE o.f1 >= '1234';
106  four |     f1     
107 ------+------------
108       |       1234
109       |       1235
110       | 4294966256
111       |   99999999
112 (4 rows)
113
114 SELECT '' AS three, o.* FROM OID_TBL o WHERE o.f1 > '1234';
115  three |     f1     
116 -------+------------
117        |       1235
118        | 4294966256
119        |   99999999
120 (3 rows)
121
122 DROP TABLE OID_TBL;