diff options
| author | Pallavi Sontakke | 2016-02-15 13:04:51 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2016-10-18 09:58:30 +0000 |
| commit | aebcc1297b9dfde2b6039e67aa6cb954ba205522 (patch) | |
| tree | 74f12bd37c1d9d955407181ee0dd6ed49b842cac /contrib/citext | |
| parent | edba6664b02512e2b72583232ea0301a9e110c77 (diff) | |
Test sql and output changes for some contrib modules
Accept expected XL behavior. Add ORDER BY where needed.
Diffstat (limited to 'contrib/citext')
| -rw-r--r-- | contrib/citext/expected/citext_1.out | 8 | ||||
| -rw-r--r-- | contrib/citext/sql/citext.sql | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/contrib/citext/expected/citext_1.out b/contrib/citext/expected/citext_1.out index fcadd8d392..d2791a5eb4 100644 --- a/contrib/citext/expected/citext_1.out +++ b/contrib/citext/expected/citext_1.out @@ -519,14 +519,14 @@ SELECT name FROM srt WHERE name !~ 'A$' ORDER BY name; (3 rows) -- SIMILAR TO should be case-insensitive. -SELECT name FROM srt WHERE name SIMILAR TO '%a.*'; +SELECT name FROM srt WHERE name SIMILAR TO '%a.*' order by name; name ------ AAA aba (2 rows) -SELECT name FROM srt WHERE name SIMILAR TO '%A.*'; +SELECT name FROM srt WHERE name SIMILAR TO '%A.*' order by name; name ------ AAA @@ -2314,11 +2314,13 @@ SELECT * (2 rows) REFRESH MATERIALIZED VIEW CONCURRENTLY citext_matview; +ERROR: schema "pg_temp_2" does not exist +CONTEXT: SQL statement "ANALYZE pg_temp_2.pg_temp_16514_2" SELECT * FROM citext_matview ORDER BY id; id | name ----+------- 1 | one - 2 | Two + 2 | two 3 | three 4 | 5 | diff --git a/contrib/citext/sql/citext.sql b/contrib/citext/sql/citext.sql index 950895baea..caaff70f6c 100644 --- a/contrib/citext/sql/citext.sql +++ b/contrib/citext/sql/citext.sql @@ -173,8 +173,8 @@ SELECT name FROM srt WHERE name ~ '^A' ORDER BY name; SELECT name FROM srt WHERE name !~ 'A$' ORDER BY name; -- SIMILAR TO should be case-insensitive. -SELECT name FROM srt WHERE name SIMILAR TO '%a.*'; -SELECT name FROM srt WHERE name SIMILAR TO '%A.*'; +SELECT name FROM srt WHERE name SIMILAR TO '%a.*' order by name; +SELECT name FROM srt WHERE name SIMILAR TO '%A.*' order by name; -- Explicit casts. SELECT true::citext = 'true' AS t; |
