Skip to content

Commit

Permalink
Statement has no @dbh . Don't reference it in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistos committed Dec 8, 2012
1 parent 2551672 commit 7e8fb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/m4dbi/statement.rb
Expand Up @@ -21,7 +21,7 @@ def select_column( *bindvars )
if rows.any?
rows[0][0]
else
raise RDBI::Error.new( "Query returned no rows. SQL: #{@dbh.last_query}" )
raise RDBI::Error.new( "Query returned no rows." )
end
end

Expand Down

0 comments on commit 7e8fb8a

Please sign in to comment.