Fix comment in regression tests for large objects
authorMichael Paquier <[email protected]>
Thu, 16 Jun 2022 08:21:04 +0000 (17:21 +0900)
committerMichael Paquier <[email protected]>
Thu, 16 Jun 2022 08:21:04 +0000 (17:21 +0900)
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

src/test/regress/expected/largeobject.out
src/test/regress/expected/largeobject_1.out
src/test/regress/sql/largeobject.sql

index 8e32de04e640fa12c9741e19c4366aea14fe7a4c..60d7b991c193fcd9d90a27aa578c9214556994ed 100644 (file)
@@ -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));
index 561065da58613fec2d31e7c2e0adcd435fc3b298..30c8d3da800d4273fe372cf8ab79333d8bdead9b 100644 (file)
@@ -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));
index fd3518889ebe1bb59ce14f8976976530d2cabcee..2ef03cfdae0d0a349642ad02f9c8df0b7dd83059 100644 (file)
@@ -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));