Skip to content

Commit

Permalink
Safer datastore_active flagging
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 30, 2012
1 parent eca6c28 commit 8fa0e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/plugin.py
Expand Up @@ -75,7 +75,7 @@ def new_resource_show(context, data_dict):
try:
connection = engine.connect()
result = connection.execute(
'SELECT 1 FROM pg_tables WHERE tablename = %s',
'SELECT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL',
new_data_dict['id']
).fetchone()
if result:
Expand Down

0 comments on commit 8fa0e12

Please sign in to comment.