Skip to content

fix(es_extended): correct SQL insertion logic in ESX.AddItems#1772

Closed
DebugPadawan wants to merge 1 commit intoesx-framework:devfrom
DebugPadawan:fix/esx-additems-sql-bug
Closed

fix(es_extended): correct SQL insertion logic in ESX.AddItems#1772
DebugPadawan wants to merge 1 commit intoesx-framework:devfrom
DebugPadawan:fix/esx-additems-sql-bug

Conversation

@DebugPadawan
Copy link
Copy Markdown

Fixes a bug where items created with ESX.AddItems are not being persisted to the database because the previous oxmysql prepare.await implementation was receiving a list of objects instead of properly formatted primitives/arrays for bulk insertion.

Resolves #1768

Changes

  • Replaced the broken MySQL.prepare.await insertion with MySQL.insert.await, mapping the toInsert tables to an array of primitives for standard bulk insertion.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


root seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@DebugPadawan DebugPadawan closed this by deleting the head repository Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants