contrib/lo: Add test for function lo_oid()

Author: Ronan Dunklau
Discussion: https://postgr.es/m/ZzMSJkiNZhimjXWx@paquier.xyz
This commit is contained in:
Michael Paquier 2024-11-14 12:24:00 +09:00
parent 4e6e375b00
commit 3ef038fc4f
2 changed files with 8 additions and 0 deletions

View 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;

View File

@ -27,4 +27,6 @@ DELETE FROM image;
SELECT lo_get(43214);
SELECT lo_oid(1::lo);
DROP TABLE image;