mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-06 12:20:15 +01:00
contrib/lo: Add test for function lo_oid()
Author: Ronan Dunklau Discussion: https://postgr.es/m/ZzMSJkiNZhimjXWx@paquier.xyz
This commit is contained in:
parent
4e6e375b00
commit
3ef038fc4f
|
|
@ -47,4 +47,10 @@ SELECT lo_get(43214);
|
||||||
DELETE FROM image;
|
DELETE FROM image;
|
||||||
SELECT lo_get(43214);
|
SELECT lo_get(43214);
|
||||||
ERROR: large object 43214 does not exist
|
ERROR: large object 43214 does not exist
|
||||||
|
SELECT lo_oid(1::lo);
|
||||||
|
lo_oid
|
||||||
|
--------
|
||||||
|
1
|
||||||
|
(1 row)
|
||||||
|
|
||||||
DROP TABLE image;
|
DROP TABLE image;
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,6 @@ DELETE FROM image;
|
||||||
|
|
||||||
SELECT lo_get(43214);
|
SELECT lo_get(43214);
|
||||||
|
|
||||||
|
SELECT lo_oid(1::lo);
|
||||||
|
|
||||||
DROP TABLE image;
|
DROP TABLE image;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user