Skip to content

Commit

Permalink
Exclude temporary tables when parsing the schema on PostgreSQL (Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Aug 6, 2010
1 parent 1e61e9f commit 7de83ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
=== HEAD

* Exclude temporary tables when parsing the schema on PostgreSQL (jeremyevans) (#306)

* Add Mysql2 adapter (brianmario)

* Handle Mysql::Error exceptions when disconnecting in the MySQL adapter (jeremyevans)
Expand Down
2 changes: 1 addition & 1 deletion lib/sequel/adapters/shared/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def sequence(schema, table)

# Methods shared by Database instances that connect to PostgreSQL.
module DatabaseMethods
EXCLUDE_SCHEMAS = %w[pg_catalog pg_toast pg_temp_1 pg_toast_temp_1 information_schema]
EXCLUDE_SCHEMAS = /pg_*|information_schema/i
PREPARED_ARG_PLACEHOLDER = LiteralString.new('$').freeze
RE_CURRVAL_ERROR = /currval of sequence "(.*)" is not yet defined in this session|relation "(.*)" does not exist/.freeze
SYSTEM_TABLE_REGEXP = /^pg|sql/.freeze
Expand Down

0 comments on commit 7de83ba

Please sign in to comment.