This repository was archived by the owner on Apr 29, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 266
SELECT json_extract query crashes server #276
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right
Description
Issue checklist
MySQL.scalar.await("SELECT users JSON_EXTRACT(accounts, '$."..accountName.."') AS money WHERE identifier = ?", {money, identifier})
crashes my server without a trace. Just closes. It's wrong syntax which I didn't realise, but still shouldnt crash.
It might also crash, because the arguments mismatch.
- I am using the latest release
- I have referenced previously reported issues
- I have referenced available documentation and cannot resolve the issue
- I'm certain this is an issue with oxymysql, and not with my resource
Describe the bug
Crash
Screenshots
https://i.imgur.com/IAb4iBZ.png
Printed myself the query in front
Code
MySQL.scalar.await("SELECT users JSON_EXTRACT(accounts, '$."..accountName.."') AS money WHERE identifier = ?", {money, identifier})
Expected behavior
An error and no crash
Additional context
Add any other context about the problem here.
Server details
- Newest artifact
- Linux
Database details
- MariaDB
- 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right