You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batched statements are SQL transactions. If a statement in the sequence fails, then an error is returned for that specific statement, and it aborts or rolls back the entire sequence.
When I have a couple of INSERT statements and the second one has a typo (a deliberate INSERTZ in the code example below), an error is thrown but the first statement still works.
From the docs:
When I have a couple of
INSERT
statements and the second one has a typo (a deliberateINSERTZ
in the code example below), an error is thrown but the first statement still works.code example:
This is happening in the local development environment using the command:
wrangler dev --local --persist
wrangler v2.8.1
node v16.19.0
sqlite v3.34.1
The text was updated successfully, but these errors were encountered: