-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Improved Compatibility Around LAST_INSERT_ID #17408
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
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9a3ee9b
proto: add fetch_last_insert_id to ExecuteOptions
systay 55cddc6
test: clean up test
systay d7df55f
feat: fetch last_insert_id when asked for it
systay b2236a6
feat: update the ExecuteMultiShard interface method
systay fcc3619
feat: add semantic query signature for last_insert_id with arguments
systay d82f3fb
feat: pass on the FetchLastInsertID to the engine primitives
systay 02309c9
bugfix: check if options exist before using
systay 6037a4a
added insertID changed boolean to indicate if last_insert id value is…
harshit-gangal fa23fd1
feat: pass down FetchLastInsertID bool
systay d92546f
feat: handle last_insert_id with arguments in more situations
systay 56624f6
feat: pass it along for streaming queries
systay e0bb055
test: add transactions into the test mix
systay 598e21f
result append: remove the short circuit code
harshit-gangal a5145d6
feat: make sure to check last insert id in transactions, and don't fi…
systay aea2c38
feat: stop receiving data from tablet when we know we don't need it
systay 5b8ed47
test: add plan-test showing when we need to exhaust the input stream
systay 9fdbc25
bugfix: protect against nil exceptions
systay 193e007
test: add errors to test log
systay 6db0700
feat: abort early once we reach count = 0
systay bea0515
codegen
systay 61c0b64
feat: clean up limit code
systay c0710ba
test: test with more values
systay 6c71923
test: fix queries test
harshit-gangal 9dc7651
fix: merge sort for receiving fields in multiple packets
harshit-gangal 873d095
addressed review comments
systay de2615c
feat: make sure to reset FetchLastInsertID for every call
systay c0393c5
implement engine.StreamExecutor
systay 0dbe347
make test easier to read
systay 6fedc44
feat: solve data race
systay b9d4b7a
move lastInsertId setting to vcursor
systay 53e3fcc
handle lastInsertID correctly when streaming
systay a32c012
feat: make sure Insert updates the result struct correctly
systay 12aceda
clean up querypb marshall/unmarshall of result
systay 95d090d
test: fix grpcvtgateconn tests
systay 959aee9
refactor: simplify coersion logic
systay 4798918
Merge remote-tracking branch 'upstream/main' into last-insert-id-step1
systay 4565dca
test: make e2e plan-tests run DML cases
systay b2c1f9c
simplify logic
systay 66bc6eb
check that we have a result before using it
systay aebd8e4
fix executor and improve tests for scatter_con
systay eb58df1
compare with length and not nil
systay 1c2be73
simplify logic
systay b14f0e8
test: refactor test
systay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.