-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix logical bug in decodeJson() function #113
Conversation
While the description is not descriptive, this commit contains a rather important fix in regards to JSON unpacking. We ran into fun binary-soup-strings without this fix. |
Could you please add a test case? |
Added a simple test for |
I was thinking about an integration test reading a json value from the database. |
I am not sure whether MySQL/MariaDB can be coerced to sending base64 (or non-base64) JSON on purpose. WDYT @crtlib -you triaged this so far. |
@bzikarsky Hm, good question. Unfortunately, I can't find anything about it on the web 😒 |
Can you add a second testcase which runs this against the CI's integration test databases? Even if it's sometimes a NOOP, it's still valuable. |
@bzikarsky Any hints on how to run it agains CI integration test database? Would really like to see this merged. |
What do you mean? If you look at the existing test code, you can see it already connects to a test database. The travis scripts install a defined version of MariaDB. It's coming down to bootstrapping a test case with a JSON column and querying it. Btw. I am not a maintainer and just work in the same org as @crtlib. I'd also like to see this merged. 😉 |
Looking at the code, it's obviously wrong, so I've merged this now. Sorry for the long delay, will prepare a release soon. |
@kelunik Nice, thanks! |
https://github.com/amphp/mysql/releases/tag/v2.1.2 has been tagged now! 🚀 |
😬