Skip to content

Commit 3ef038f

Browse files
committed
contrib/lo: Add test for function lo_oid()
Author: Ronan Dunklau Discussion: https://postgr.es/m/ZzMSJkiNZhimjXWx@paquier.xyz
1 parent 4e6e375 commit 3ef038f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

contrib/lo/expected/lo.out

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ SELECT lo_get(43214);
4747
DELETE FROM image;
4848
SELECT lo_get(43214);
4949
ERROR: large object 43214 does not exist
50+
SELECT lo_oid(1::lo);
51+
lo_oid
52+
--------
53+
1
54+
(1 row)
55+
5056
DROP TABLE image;

contrib/lo/sql/lo.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ DELETE FROM image;
2727

2828
SELECT lo_get(43214);
2929

30+
SELECT lo_oid(1::lo);
31+
3032
DROP TABLE image;

0 commit comments

Comments
 (0)