contrib/lo: Add test for function lo_oid()
authorMichael Paquier <[email protected]>
Thu, 14 Nov 2024 03:24:00 +0000 (12:24 +0900)
committerMichael Paquier <[email protected]>
Thu, 14 Nov 2024 03:24:00 +0000 (12:24 +0900)
Author: Ronan Dunklau
Discussion: https://postgr.es/m/[email protected]

contrib/lo/expected/lo.out
contrib/lo/sql/lo.sql

index c63e4b1c704fb4f20380339d6abb5597d9da12af..65798205a5ae07b093d88396e6aa0755920a3830 100644 (file)
@@ -47,4 +47,10 @@ SELECT lo_get(43214);
 DELETE FROM image;
 SELECT lo_get(43214);
 ERROR:  large object 43214 does not exist
+SELECT lo_oid(1::lo);
+ lo_oid 
+--------
+      1
+(1 row)
+
 DROP TABLE image;
index 770395092450802cd867bdec4febe70c0119e9ef..ca36cdb30982dd240bb1550e4c0444302a47caef 100644 (file)
@@ -27,4 +27,6 @@ DELETE FROM image;
 
 SELECT lo_get(43214);
 
+SELECT lo_oid(1::lo);
+
 DROP TABLE image;