Added test created for PR #247

They use a different SQL query with no results.

They fail in the ``eq_(cur.rowcount, -1)`` assertions.