Which sqlite driver are you using? That sounds like a bug.

On Fri, Sep 11, 2020 at 10:56 AM Stephan Lukits <stephan.luk...@gmail.com>
wrote:

> 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
> <https://groups.google.com/d/msgid/golang-nuts/f639a2d4-46c0-4798-8be4-6fddd198ac5an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2Bv29LvxwQUXZywLwpABQucvixVrDSdxvBDMLbnQrj%3DXOcOWVQ%40mail.gmail.com.

Reply via email to