Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Getting "operation is not allowed when the object is closed" error on insert but not on select #432

Open
MagicMustache opened this issue Apr 1, 2021 · 0 comments

Comments

@MagicMustache
Copy link

Hello,
I'm getting the error "operation is not allowed when the object is closed" when trying to insert into a table, but in the same function i'm doing a select that works fine.
Here is my insert query :
await connection.query("insert into Variants (CatalogCode,Variant,MeleePrice,StonePrice,RingPrice,PrRing,PrMelee,PrStone) values ('"+variantsToAdd[i].CatalogCode+"','"+variantsToAdd[i].Variant+"',"+variantsToAdd[i].MeleePrice+"," +variantsToAdd[i].StonePrice+","+variantsToAdd[i].RingPrice+","+variantsToAdd[i].PrRing+","+variantsToAdd[i].PrMelee+","+variantsToAdd[i].PrStone+")")

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant