You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It takes a []bob.Expression as argument and starts by comparing the length to t.nonGeneratedCols. However I think the values passed in here are wrong.
Running the debugger for the test above we see the following:
Which makes it fail already on the length check. Also looking at the structures, the rest of the function does not seem to make much sense either with this input.
Maybe it's a simple thing that needs to change, I have difficulties seeing what needs to change for it to work as expected
The text was updated successfully, but these errors were encountered:
In v0.30 (and probably also v0.29, but I haven't tested that) inserts does not work for MySQL tables that relies on having a composite unique index.
When you're doing an insert this error is returned:
cannot retrieve inserted row (ErrCannotRetrieveRow)
and the model isnil
.Minimum reproducer
Setup
unique_only_table.bob
Investigation
So it seems the issue arises in
table.go
asgetInserted
calls the function below.It takes a
[]bob.Expression
as argument and starts by comparing the length tot.nonGeneratedCols
. However I think the values passed in here are wrong.Running the debugger for the test above we see the following:
Which makes it fail already on the length check. Also looking at the structures, the rest of the function does not seem to make much sense either with this input.
Maybe it's a simple thing that needs to change, I have difficulties seeing what needs to change for it to work as expected
The text was updated successfully, but these errors were encountered: