Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

SELECT json_extract query crashes server #276

@mcNuggets1

Description

@mcNuggets1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions