-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
sqlite: add sqlite prepare options args #61311
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
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
b62c50e to
9bca95a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #61311 +/- ##
==========================================
- Coverage 88.54% 88.51% -0.03%
==========================================
Files 704 704
Lines 208793 208872 +79
Branches 40307 40336 +29
==========================================
+ Hits 184866 184879 +13
- Misses 15913 15965 +52
- Partials 8014 8028 +14
🚀 New features to boost your workflow:
|
bb33e58 to
6da81dd
Compare
45a8e19 to
faaec9f
Compare
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
gurgunday
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| Local<Object> options = args[1].As<Object>(); | ||
|
|
||
| Local<Value> return_arrays_v; | ||
| if (!options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooc, are you eagerly returning if you're unable to allocate a string? (I'm assuming that's what this is doing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If an API method returns a MaybeLocal<>, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a TerminateExecution exception was thrown. In that case, an empty MaybeLocal is returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, when it fails, an exception is already pending, so we return early to let it propagate.
faaec9f to
9418cab
Compare
Fixes #61235