From 022ac3396e2f601777ca127cdb6ab7a326b1920f Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Tue, 7 Jun 2016 20:10:04 +0200 Subject: [PATCH] Add regression test for expression indexes. This has already been broken twice, make sure it won't happen again. --- expected/hypopg.out | 7 +++++++ test/sql/hypopg.sql | 3 +++ 2 files changed, 10 insertions(+) diff --git a/expected/hypopg.out b/expected/hypopg.out index f3af1bd..f62bfad 100644 --- a/expected/hypopg.out +++ b/expected/hypopg.out @@ -139,3 +139,10 @@ SELECT hypopg_reset(); (1 row) +-- indexes on expression are not handle +SELECT hypopg_create_index('CREATE INDEX ON hypo (md5(val))'); +WARNING: hypopg: hypothetical indexes on expression are not supported yet + hypopg_create_index +--------------------- +(0 rows) + diff --git a/test/sql/hypopg.sql b/test/sql/hypopg.sql index 39a5426..bc8c2c1 100644 --- a/test/sql/hypopg.sql +++ b/test/sql/hypopg.sql @@ -89,3 +89,6 @@ SELECT hypopg_drop_index(indexrelid) FROM hypopg() ORDER BY indexrelid LIMIT 1; -- Remove all the hypothetical indexes SELECT hypopg_reset(); + +-- indexes on expression are not handle +SELECT hypopg_create_index('CREATE INDEX ON hypo (md5(val))');