Skip to content
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

Does not immediate saved into db? #1893

Open
wildfiremedia opened this issue Dec 29, 2024 · 1 comment
Open

Does not immediate saved into db? #1893

wildfiremedia opened this issue Dec 29, 2024 · 1 comment

Comments

@wildfiremedia
Copy link

wildfiremedia commented Dec 29, 2024

I have a prepare statement that insert into table.

When I submitted 1st form submission, I could not find any row appear in my table, and test 2nd form submission, then I realised the 1st row will then appear but not the 2nd row that will only appear after the next form submission.

Why is this a weird behaviour or a bug?

@wildfiremedia wildfiremedia changed the title Does not immediate save into db? Does not immediate saved into db? Dec 29, 2024
@wildfiremedia
Copy link
Author

wildfiremedia commented Dec 29, 2024

Testing out better-sqlite3, it did immediately add new row into the table. I think there is a critical bug in libSQL that should be fix.

The tested packages:

"better-sqlite3": "^11.7.0",
"@types/better-sqlite3": "^7.6.12",
"libsql": "^0.5.0-pre.5"

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

No branches or pull requests

1 participant