Fix #250 -- Don't consider partial index creation as making a column not nullable.

This commit is contained in:
David Wobrock authored and David Wobrock committed 2023-07-03 20:41:03 +02:00
1 parent b6acc1dd22
commit 97a1f5c6c9
3 files changed
+16 -1

No files matched your search

+4
View File
@@ -297,6 +297,10 @@ class PostgresqlAnalyserTestCase(SqlAnalyserTestCase):
sql = "CREATE UNIQUE INDEX CONCURRENTLY title_idx ON films (title);"
self.assertValidSql(sql)
def test_create_index_concurrently_where(self):
sql = 'CREATE INDEX CONCURRENTLY "index_name" ON "table_name" ("a_column") WHERE ("some_column" IS NOT NULL);'
self.assertValidSql(sql)
def test_drop_index_non_concurrently(self):
sql = "DROP INDEX ON films"
self.assertWarningSql(sql)