persistent-postgresql 2.2.1 → 2.2.1.1
raw patch · 3 files changed
+8/−2 lines, 3 files
Files
- ChangeLog.md +5/−0
- Database/Persist/Postgresql.hs +2/−1
- persistent-postgresql.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,8 @@+## 2.2.1.1++Query pg_catalog instead of information_schema for metadata.+This helps with permission issues as reported in issue #501+ ## 2.2.1 * Fix treatment of `NULL`s inside arrays. For example, now you
Database/Persist/Postgresql.hs view
@@ -406,7 +406,8 @@ stmt <- getter sql with (stmtQuery stmt vals) ($$ start) where- sql = "SELECT COUNT(*) FROM information_schema.tables WHERE table_name=?"+ sql = "SELECT COUNT(*) FROM pg_catalog.pg_tables WHERE schemaname != 'pg_catalog'"+ <> " AND schemaname != 'information_schema' AND tablename=?" vals = [PersistText name] start = await >>= maybe (error "No results when checking doesTableExist") start'
persistent-postgresql.cabal view
@@ -1,5 +1,5 @@ name: persistent-postgresql-version: 2.2.1+version: 2.2.1.1 license: MIT license-file: LICENSE author: Felipe Lessa, Michael Snoyman <michael@snoyman.com>