[go-nuts] Re: database/sql left join best practicea for null values

2018-01-02 Thread meybohm
Just found myself in the same situation wondering that this should not be so complicated. What did you end up doing may I ask? On Tuesday, 25 April 2017 09:29:24 UTC+2, slinso wrote: > > What's a nice way to handle left joins with database/sql? Imagine you have > a users who can optional have an

[go-nuts] Re: database/sql left join best practicea for null values

2017-04-25 Thread 'slinso' via golang-nuts
Forgot to mention that I currently use MySQL with go-sql-driver. Another solution would be to use mymysql as a driver. That one maps null values to go type default zero values. But I wanted to stick to go-sql-driver because I think it is more actively maintained. -- You received this message b