mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-11 19:20:40 +08:00
Make the newly-added regression tests for lo_truncate() consistent
with the recent largeobject cosmetic fixes. Jeremy Drake.
This commit is contained in:
parent
00a3807568
commit
1ae756c204
@ -85,7 +85,7 @@ END;
|
||||
|
||||
-- Test truncation.
|
||||
BEGIN;
|
||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST((2 | 4) * 16^4 AS integer));
|
||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
|
||||
|
||||
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
|
||||
SELECT loread(fd, 15) FROM lotest_stash_values;
|
||||
|
@ -118,7 +118,7 @@ SELECT lo_close(fd) FROM lotest_stash_values;
|
||||
END;
|
||||
-- Test truncation.
|
||||
BEGIN;
|
||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST((2 | 4) * 16^4 AS integer));
|
||||
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
|
||||
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
|
||||
lo_truncate
|
||||
-------------
|
||||
|
Loading…
Reference in New Issue
Block a user