mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Fix comment in regression tests for large objects
The values assigned to INV_WRITE and INV_READ were reversed in the tests, which would be confusing when writing tests specific to read or write operations on LOs. Author: Yugo Nagata Discussion: https://postgr.es/m/20220527153028.61a4608f66abcd026fd3806f@sraoss.co.jp
This commit is contained in:
parent
b7658c24c7
commit
664da2a389
@ -50,8 +50,8 @@ INSERT INTO lotest_stash_values (loid) SELECT lo_creat(42);
|
||||
BEGIN;
|
||||
-- lo_open(lobjId oid, mode integer) returns integer
|
||||
-- The mode parameter to lo_open uses two constants:
|
||||
-- INV_READ = 0x20000
|
||||
-- INV_WRITE = 0x40000
|
||||
-- INV_WRITE = 0x20000
|
||||
-- INV_READ = 0x40000
|
||||
-- The return value is a file descriptor-like value which remains valid for the
|
||||
-- transaction.
|
||||
UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS integer));
|
||||
|
@ -50,8 +50,8 @@ INSERT INTO lotest_stash_values (loid) SELECT lo_creat(42);
|
||||
BEGIN;
|
||||
-- lo_open(lobjId oid, mode integer) returns integer
|
||||
-- The mode parameter to lo_open uses two constants:
|
||||
-- INV_READ = 0x20000
|
||||
-- INV_WRITE = 0x40000
|
||||
-- INV_WRITE = 0x20000
|
||||
-- INV_READ = 0x40000
|
||||
-- The return value is a file descriptor-like value which remains valid for the
|
||||
-- transaction.
|
||||
UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS integer));
|
||||
|
@ -34,8 +34,8 @@ BEGIN;
|
||||
|
||||
-- lo_open(lobjId oid, mode integer) returns integer
|
||||
-- The mode parameter to lo_open uses two constants:
|
||||
-- INV_READ = 0x20000
|
||||
-- INV_WRITE = 0x40000
|
||||
-- INV_WRITE = 0x20000
|
||||
-- INV_READ = 0x40000
|
||||
-- The return value is a file descriptor-like value which remains valid for the
|
||||
-- transaction.
|
||||
UPDATE lotest_stash_values SET fd = lo_open(loid, CAST(x'20000' | x'40000' AS integer));
|
||||
|
Loading…
x
Reference in New Issue
Block a user