<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -41,7 +41,7 @@ module DBI
       if row
         row[ 0 ]
       else
-        raise DBI::DataError.new( &quot;Query returned no rows.&quot; )
+        raise DBI::DataError.new( &quot;Query returned no rows.  #{last_statement}&quot; )
       end
     end
 </diff>
      <filename>lib/m4dbi/database-handle.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,12 @@ describe 'DBI::DatabaseHandle#select_column' do
     should.raise( DBI::DataError ) do
       $dbh.select_column( &quot;SELECT name FROM authors WHERE 1+1 = 3&quot; )
     end
+
+    begin
+      $dbh.select_column( &quot;SELECT name FROM authors WHERE 1+1 = 3&quot; )
+    rescue DBI::DataError =&gt; e
+      e.message.should.match /SELECT name FROM authors WHERE 1\+1 = 3/
+    end
   end
 
   it 'selects one column of first row' do</diff>
      <filename>spec/dbi.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7621dd2bdd64794badc343516bfcb57da259d1bc</id>
    </parent>
  </parents>
  <author>
    <name>Pistos</name>
    <email>gitsomegrace.5.pistos@geoshell.com</email>
  </author>
  <url>http://github.com/Pistos/m4dbi/commit/d263a03ffd0a43caad099b6175a23f683d138274</url>
  <id>d263a03ffd0a43caad099b6175a23f683d138274</id>
  <committed-date>2009-07-11T00:10:31-07:00</committed-date>
  <authored-date>2009-07-11T00:10:31-07:00</authored-date>
  <message>On select_column error, use last_statment.</message>
  <tree>3a6bf585c837680fddbc827a66dba46e270a907b</tree>
  <committer>
    <name>Pistos</name>
    <email>gitsomegrace.5.pistos@geoshell.com</email>
  </committer>
</commit>
