ckan/ckan — pull request #2059 by rossjones (2014-11-19 13:32:04+00:00)
Title: Fixes #2007 by ensuring the datastore_active flag is always present.

In the plugins before_show the datastore_active flag in the resource
dict would not be set if the sql query generated an exception. This had
implications with pg 8.4 where the flag was not present because of a
query failure, but it was checked for in tests.

Have set the default to false and just overwrites it if

1. The query does not explode
2. It returns a result.