From: Paul D. <pa...@sn...> - 2003-01-13 23:57:15
|
In dbi.rb, select_one is defined like this: def select_one(stmt, *bindvars) raise InterfaceError, "Database connection was already closed!" if @handle.nil? row = nil execute(stmt, *bindvars) do |sth| row = sth.fetch end row end Should this invoke cancel after invoking fetch, to clobber the result set, in case there are more rows than one and fetch doesn't invoke cancel implicitly? |