Open ldelossa opened 5 years ago
You should add tag:
Location
db:"location"
And if you use Oracle (with goracle.v2 driver), which thinks of location.notes as of object.field (unless it is quoted but in this case sqlx.NamedExec won't work) then you should use Named (to get args from your nested structs) and Rebind (to rename :location.notes to :argN) instead of NamedExec.
Hey guys,
I have a question. Let's say I have the structs
As you can see both structs have "Notes" field. I then have a NamedExec query like this:
Is there a way to do something like:
So that both "Notes" field get into the database in separate columns?