]> granicus.if.org Git - postgresql/commitdiff
Fix brin "char" test to actually test what it meant to test.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2015 17:50:32 +0000 (13:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jun 2015 17:50:32 +0000 (13:50 -0400)
Casting to char, without quotes, does not give the same results as casting
to "char".  That meant we were not testing the brin "char" paths at all,
since we ended up with a text operator not a "char" operator.

src/test/regress/expected/brin.out
src/test/regress/sql/brin.sql

index ba0824428ec2423579504ee6c17738081cb66e7e..b45c77a0649009855fdc79f3c5abacc80d210bf0 100644 (file)
@@ -96,7 +96,7 @@ CREATE TABLE brinopers (colname name, typ text, op text[], value text[],
        check (cardinality(op) = cardinality(value)));
 INSERT INTO brinopers VALUES
        ('byteacol', 'bytea', '{>, >=, =, <=, <}', '{AAAAAA, AAAAAA, BNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAA, ZZZZZZ, ZZZZZZ}'),
-       ('charcol', 'char', '{>, >=, =, <=, <}', '{A, A, M, Z, Z}'),
+       ('charcol', '"char"', '{>, >=, =, <=, <}', '{A, A, M, Z, Z}'),
        ('namecol', 'name', '{>, >=, =, <=, <}', '{AAAAAA, AAAAAA, MAAAAA, ZZAAAA, ZZAAAA}'),
        ('int2col', 'int2', '{>, >=, =, <=, <}', '{0, 0, 800, 999, 999}'),
        ('int2col', 'int4', '{>, >=, =, <=, <}', '{0, 0, 800, 999, 1999}'),
index 881a13b1b0b3f85c38a5386c9fdbf529f7d92e21..9a8baef812a0b622945918ae11e79b85138765b7 100644 (file)
@@ -101,7 +101,7 @@ CREATE TABLE brinopers (colname name, typ text, op text[], value text[],
 
 INSERT INTO brinopers VALUES
        ('byteacol', 'bytea', '{>, >=, =, <=, <}', '{AAAAAA, AAAAAA, BNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAABNAAAA, ZZZZZZ, ZZZZZZ}'),
-       ('charcol', 'char', '{>, >=, =, <=, <}', '{A, A, M, Z, Z}'),
+       ('charcol', '"char"', '{>, >=, =, <=, <}', '{A, A, M, Z, Z}'),
        ('namecol', 'name', '{>, >=, =, <=, <}', '{AAAAAA, AAAAAA, MAAAAA, ZZAAAA, ZZAAAA}'),
        ('int2col', 'int2', '{>, >=, =, <=, <}', '{0, 0, 800, 999, 999}'),
        ('int2col', 'int4', '{>, >=, =, <=, <}', '{0, 0, 800, 999, 1999}'),