Skip to content

Commit 1ae756c

Browse files
author
Neil Conway
committed
Make the newly-added regression tests for lo_truncate() consistent
with the recent largeobject cosmetic fixes. Jeremy Drake.
1 parent 00a3807 commit 1ae756c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/input/largeobject.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ END;
8585

8686
-- Test truncation.
8787
BEGIN;
88-
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST((2 | 4) * 16^4 AS integer));
88+
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
8989

9090
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
9191
SELECT loread(fd, 15) FROM lotest_stash_values;

src/test/regress/output/largeobject.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ SELECT lo_close(fd) FROM lotest_stash_values;
118118
END;
119119
-- Test truncation.
120120
BEGIN;
121-
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST((2 | 4) * 16^4 AS integer));
121+
UPDATE lotest_stash_values SET fd=lo_open(loid, CAST(x'20000' | x'40000' AS integer));
122122
SELECT lo_truncate(fd, 10) FROM lotest_stash_values;
123123
lo_truncate
124124
-------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy