-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GORM JSONArrayQuery.Contains isn't compatible #1855
Comments
Can any maintainer have a look? |
@fulghum will look today. --Tim |
Hey @ns-kliu, thanks for taking the time to report this and to provide such a nice repro case! I've got the repro going and am seeing the same behavior you describe. The first thing I've noticed is that the first two queries (which don't return the user that was just created) are both using prepared statements, and the third query (which works correctly) is simply being executed without being prepared and then having bind vars plugged in. Based on that, it seems like there's something going on with query preparation. I've tried disabling prepared statements to confirm that guess, but the configuration I provided doesn't seem to actually disable them. I'll keep digging in and see what else I can find in the debugger. |
I kept digging deeper into this one and noticed that the client/GORM is sending over the type I've got a few more steps to get that change available in go-mysql-server and dolt and will close this issue once those are done. |
Hello, I found a weird issue when using GROM
datatypes.JSONArrayQuery.Contains
to access in-memory go-mysql-server, please see the below example or check my repoI test 3 statements, their SQL query is the same, but only 1 works as expected.
I also test
Result:
The text was updated successfully, but these errors were encountered: