Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafaccbb

Browse files
committed
Rename object in test to avoid conflict
In01e658f, the hash_func testcreates a type t1, but apparently a test running in parallel mightalso use that name, depending on timing. Rename the type to avoid theissue.
1 parent01e658f commitafaccbb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

‎src/test/regress/expected/hash_func.out

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,24 +305,24 @@ WHERE hash_range(v)::bit(32) != hash_range_extended(v, 0)::bit(32)
305305
-------+----------+-----------+-----------
306306
(0 rows)
307307

308-
CREATE TYPEt1 AS (a int, b text);
308+
CREATE TYPEhash_test_t1 AS (a int, b text);
309309
SELECT v as value, hash_record(v)::bit(32) as standard,
310310
hash_record_extended(v, 0)::bit(32) as extended0,
311311
hash_record_extended(v, 1)::bit(32) as extended1
312-
FROM (VALUES (row(1, 'aaa')::t1, row(2, 'bbb'), row(-1, 'ccc'))) x(v)
312+
FROM (VALUES (row(1, 'aaa')::hash_test_t1, row(2, 'bbb'), row(-1, 'ccc'))) x(v)
313313
WHERE hash_record(v)::bit(32) != hash_record_extended(v, 0)::bit(32)
314314
OR hash_record(v)::bit(32) = hash_record_extended(v, 1)::bit(32);
315315
value | standard | extended0 | extended1
316316
-------+----------+-----------+-----------
317317
(0 rows)
318318

319-
DROP TYPEt1;
319+
DROP TYPEhash_test_t1;
320320
-- record hashing with non-hashable field type
321-
CREATE TYPEt2 AS (a money, b text);
321+
CREATE TYPEhash_test_t2 AS (a money, b text);
322322
SELECT v as value, hash_record(v)::bit(32) as standard
323-
FROM (VALUES (row(1, 'aaa')::t2)) x(v);
323+
FROM (VALUES (row(1, 'aaa')::hash_test_t2)) x(v);
324324
ERROR: could not identify a hash function for type money
325325
SELECT v as value, hash_record_extended(v, 0)::bit(32) as extended0
326-
FROM (VALUES (row(1, 'aaa')::t2)) x(v);
326+
FROM (VALUES (row(1, 'aaa')::hash_test_t2)) x(v);
327327
ERROR: could not identify an extended hash function for type money
328-
DROP TYPEt2;
328+
DROP TYPEhash_test_t2;

‎src/test/regress/sql/hash_func.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,19 @@ FROM (VALUES (int4range(10, 20)), (int4range(23, 43)),
227227
WHERE hash_range(v)::bit(32)!= hash_range_extended(v,0)::bit(32)
228228
OR hash_range(v)::bit(32)= hash_range_extended(v,1)::bit(32);
229229

230-
CREATETYPEt1AS (aint, btext);
230+
CREATETYPEhash_test_t1AS (aint, btext);
231231
SELECT vas value, hash_record(v)::bit(32)as standard,
232232
hash_record_extended(v,0)::bit(32)as extended0,
233233
hash_record_extended(v,1)::bit(32)as extended1
234-
FROM (VALUES (row(1,'aaa')::t1, row(2,'bbb'), row(-1,'ccc'))) x(v)
234+
FROM (VALUES (row(1,'aaa')::hash_test_t1, row(2,'bbb'), row(-1,'ccc'))) x(v)
235235
WHERE hash_record(v)::bit(32)!= hash_record_extended(v,0)::bit(32)
236236
OR hash_record(v)::bit(32)= hash_record_extended(v,1)::bit(32);
237-
DROPTYPEt1;
237+
DROPTYPEhash_test_t1;
238238

239239
-- record hashing with non-hashable field type
240-
CREATETYPEt2AS (amoney, btext);
240+
CREATETYPEhash_test_t2AS (amoney, btext);
241241
SELECT vas value, hash_record(v)::bit(32)as standard
242-
FROM (VALUES (row(1,'aaa')::t2)) x(v);
242+
FROM (VALUES (row(1,'aaa')::hash_test_t2)) x(v);
243243
SELECT vas value, hash_record_extended(v,0)::bit(32)as extended0
244-
FROM (VALUES (row(1,'aaa')::t2)) x(v);
245-
DROPTYPEt2;
244+
FROM (VALUES (row(1,'aaa')::hash_test_t2)) x(v);
245+
DROPTYPEhash_test_t2;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp