Descriptiondatabase/sql: Check errors in QueryRow.Scan
The previous coding did not correctly check for errors from the driver's
Next() or Close(), which could mask genuine errors from the database, as
witnessed in issue #6651.
Even after this change errors from Close() will be ignored if the query
returned no rows (as Rows.Next will have closed the handle already), but it
is a lot easier for the drivers to guard against that.
Fixes issue 6651.
Patch Set 1 #Patch Set 2 : diff -r 3895ad0afefe https://code.google.com/p/go #Patch Set 3 : diff -r 3895ad0afefe https://code.google.com/p/go #Patch Set 4 : diff -r 24bc2c8febe3 https://code.google.com/p/go #
MessagesTotal messages: 6
|
|||||||||||||||||||||||||||||||||||||