Closed saulortega closed 5 years ago
Well, for starters thanks for experimenting with the code! Secondly, we -do- have to stay true to our lowest common denominator so we'd have to look at if/how this works in both mysql, mssql and it's good to look at sqlite as well.
If it is indeed different on all of these db engines, then we don't have a lot of choices if we want the functionality. But putting db specific parts in this section of the code will probably be a net negative (for maintainability etc, every feature has a cost, especially when DB support is so varied).
I'd push back a little and ask: Do we -really- need this functionality, is it used as frequently as update itself is? I'd say that's fairly unlikely. Thoughts?
Probably not going to implement this. Also stale.
Hello.
sqlboiler is ignoring the qm.InnerJoin() when Update. there should be support for this: https://stackoverflow.com/questions/7869592/how-to-do-an-update-join-in-postgresql
I tried adding a few lines to query_builders.go.
I changed this:
for this:
That works like this:
Results:
What do you think, @aarondl?
Oh, it's for Postgres. It's different on MySQL...