Commit 1ae756c2 authored by Neil Conway's avatar Neil Conway

Make the newly-added regression tests for lo_truncate() consistent

with the recent largeobject cosmetic fixes. Jeremy Drake.
parent 00a38075
...@@ -85,7 +85,7 @@ END; ...@@ -85,7 +85,7 @@ END;
-- Test truncation. -- Test truncation.
BEGIN; 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 lo_truncate(fd, 10) FROM lotest_stash_values;
SELECT loread(fd, 15) FROM lotest_stash_values; SELECT loread(fd, 15) FROM lotest_stash_values;
......
...@@ -118,7 +118,7 @@ SELECT lo_close(fd) FROM lotest_stash_values; ...@@ -118,7 +118,7 @@ SELECT lo_close(fd) FROM lotest_stash_values;
END; END;
-- Test truncation. -- Test truncation.
BEGIN; 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 lo_truncate(fd, 10) FROM lotest_stash_values;
lo_truncate lo_truncate
------------- -------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment