mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-12 04:26:59 +02:00
f5ab0a14ea
in UPDATE. We also now issue a NOTICE if a query has _any_ implicit range table entries -- in the past, we would only warn about implicit RTEs in SELECTs with at least one explicit RTE. As a result of the warning change, 25 of the regression tests had to be updated. I also took the opportunity to remove some bogus whitespace differences between some of the float4 and float8 variants. I believe I have correctly updated all the platform-specific variants, but let me know if that's not the case. Original patch for DELETE ... USING from Euler Taveira de Oliveira, reworked by Neil Conway.
44 lines
1.3 KiB
SQL
44 lines
1.3 KiB
SQL
--
|
|
-- OID
|
|
--
|
|
|
|
CREATE TABLE OID_TBL(f1 oid);
|
|
|
|
INSERT INTO OID_TBL(f1) VALUES ('1234');
|
|
INSERT INTO OID_TBL(f1) VALUES ('1235');
|
|
INSERT INTO OID_TBL(f1) VALUES ('987');
|
|
INSERT INTO OID_TBL(f1) VALUES ('-1040');
|
|
INSERT INTO OID_TBL(f1) VALUES ('99999999');
|
|
INSERT INTO OID_TBL(f1) VALUES ('5 ');
|
|
INSERT INTO OID_TBL(f1) VALUES (' 10 ');
|
|
-- leading/trailing hard tab is also allowed
|
|
INSERT INTO OID_TBL(f1) VALUES (' 15 ');
|
|
|
|
-- bad inputs
|
|
INSERT INTO OID_TBL(f1) VALUES ('');
|
|
INSERT INTO OID_TBL(f1) VALUES (' ');
|
|
INSERT INTO OID_TBL(f1) VALUES ('asdfasd');
|
|
INSERT INTO OID_TBL(f1) VALUES ('99asdfasd');
|
|
INSERT INTO OID_TBL(f1) VALUES ('5 d');
|
|
INSERT INTO OID_TBL(f1) VALUES (' 5d');
|
|
INSERT INTO OID_TBL(f1) VALUES ('5 5');
|
|
INSERT INTO OID_TBL(f1) VALUES (' - 500');
|
|
INSERT INTO OID_TBL(f1) VALUES ('32958209582039852935');
|
|
INSERT INTO OID_TBL(f1) VALUES ('-23582358720398502385');
|
|
|
|
SELECT '' AS six, * FROM OID_TBL;
|
|
|
|
SELECT '' AS one, o.* FROM OID_TBL o WHERE o.f1 = 1234;
|
|
|
|
SELECT '' AS five, o.* FROM OID_TBL o WHERE o.f1 <> '1234';
|
|
|
|
SELECT '' AS three, o.* FROM OID_TBL o WHERE o.f1 <= '1234';
|
|
|
|
SELECT '' AS two, o.* FROM OID_TBL o WHERE o.f1 < '1234';
|
|
|
|
SELECT '' AS four, o.* FROM OID_TBL o WHERE o.f1 >= '1234';
|
|
|
|
SELECT '' AS three, o.* FROM OID_TBL o WHERE o.f1 > '1234';
|
|
|
|
DROP TABLE OID_TBL;
|