I passed a string-type pointer (as last destination) to a sql.DB.Query call 
which had a NULL value as field value. No error was returned and all other 
fields got the appropriate values but the connection was silently closed. 
 I noticed because it was an in-memory (sqlite3) database which all of a 
sudden appeard empty.

I could fix the problem for me by passing a sql.NullString instead of a 
string destination.  Maybe its interesting to know.

Kind regards Stephan 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f639a2d4-46c0-4798-8be4-6fddd198ac5an%40googlegroups.com.

Reply via email to