These are chat archives for jinzhu/gorm

20th
Mar 2017
silenceper
@silenceper
Mar 20 2017 13:28
hello
I use like this:
Where("a=? and b=?","aaa","bb").First(&obj)
and it's print the raw sql wrong:
where (a=?,? and b=?)
Thomas Boerger
@tboerger
Mar 20 2017 13:53
db.Where("name = ? AND age >= ?", "jinzhu", "22“).First(&users) should work fine