Commit 1ba8365
executor、server、planner: Increase the support of the returning keyword (#83)
* Add returning keyword plan and executor for supporting PG compliant DML (#69)
* Support return result set after deletion
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* add returning plan and exectuor
modify adapter.go to execute returning separately
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
Co-authored-by: RogueJin <21214103+RogueJin@users.noreply.github.com>
* upload delete returning.png
* upgrade DCparser and fix lint issues (#70)
Signed-off-by: RogueJin <21214103+RogueJin@users.noreply.github.com>
* Hacking demo (#71)
* Readme: Updated readme and modified the version of TiDB cluster deployed (#50)
* privileges: fixed unit test of user authentication
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* fixed error msg and added const
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* executor: Modify encrypted ciphertext in ut
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* planner: Implement some interfaces in the test to solve the problem of build failed
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* planner: Implement some interfaces in the test to solve the problem of build failed
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* update readme
* Go Mod, Makefile: Dependency update (#51)
* added coverage report to gitignore
Signed-off-by: David <davidyangad@gmail.com>
* added dev-tmp to skip explaintest
Signed-off-by: David <davidyangad@gmail.com>
* update DCParser version to v1.3-alpha
Signed-off-by: David <davidyangad@gmail.com>
* changed dependency requirement for HdrHistogram
Signed-off-by: David <davidyangad@gmail.com>
* downgraded DCParser version to 1.25-alpha
Signed-off-by: David <davidyangad@gmail.com>
* Explaintest, Server: Changed Explaintest's driver (#52)
* changed driver for explaintest
Signed-off-by: David <davidyangad@gmail.com>
* improves status handling for server during transaction
Signed-off-by: David <davidyangad@gmail.com>
* Executor: Added support for setting isolation level in begin (#57)
* update DCParser reference
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* added setting isolation level capability in begin
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* adding documents for BEGIN statement
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* readme: update url for build status (#56)
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* executor: uncommented some previously skipped test (#54)
* uncommented some previously skipped test
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* wait longer for update version
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* further enlarge test wait time for better stability
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* variable,session: add search_path system variable. (#58)
* Fixed unit test bugs
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check , delete blank lines
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Add postgres search_path system variable
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Modifying Comment Information
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Added extra_float_digit system variable
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* fix:Delete unnecessary comments,Change the DCParser version
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* formatting: fixed formatting issues (#59)
* fixing formatting issues
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* typo fix
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* fixed a bug that params description will be sent when no params in handleStmtDescription (#61)
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* infoschema , util, autoid: Compatible with some tables in pg_catalog (#63)
* Compatible with some tables in pg_catalog
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* add the correct license information and fix unit test
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* expression:PostgreSQL system function support (#64)
* Added the logic realization of some system functions.
Added unit tests for PostgreSQL system functions.
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* update DCParser version
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* fixed built in function unit tests (#66)
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* core, executor: add the implemet of setparamtype at show, showddl, datasource, limit plan. (#67)
* handle the implement of setparamtype at show, showddl or datasource plan
Signed-off-by: studiolee <1964773741@qq.com>
* handle the implement of setparamtype at limit plan
Signed-off-by: studiolee <1964773741@qq.com>
* add ut for setparamtype
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
Co-authored-by: studiolee <1964773741@qq.com>
* upgrade DCparser and fix lint issues
Signed-off-by: RogueJin <21214103+RogueJin@users.noreply.github.com>
Co-authored-by: pupillord <51103574+pupillord@users.noreply.github.com>
Co-authored-by: AmoebaProtozoa <davidyangad@gmail.com>
Co-authored-by: Cue Ray <50295175+Orion7r@users.noreply.github.com>
Co-authored-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Co-authored-by: studiolee <1964773741@qq.com>
* merge main into hacking-demo (#79)
* Readme: Updated readme and modified the version of TiDB cluster deployed (#50)
* privileges: fixed unit test of user authentication
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* fixed error msg and added const
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* executor: Modify encrypted ciphertext in ut
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* planner: Implement some interfaces in the test to solve the problem of build failed
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* planner: Implement some interfaces in the test to solve the problem of build failed
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* update readme
* Go Mod, Makefile: Dependency update (#51)
* added coverage report to gitignore
Signed-off-by: David <davidyangad@gmail.com>
* added dev-tmp to skip explaintest
Signed-off-by: David <davidyangad@gmail.com>
* update DCParser version to v1.3-alpha
Signed-off-by: David <davidyangad@gmail.com>
* changed dependency requirement for HdrHistogram
Signed-off-by: David <davidyangad@gmail.com>
* downgraded DCParser version to 1.25-alpha
Signed-off-by: David <davidyangad@gmail.com>
* Explaintest, Server: Changed Explaintest's driver (#52)
* changed driver for explaintest
Signed-off-by: David <davidyangad@gmail.com>
* improves status handling for server during transaction
Signed-off-by: David <davidyangad@gmail.com>
* Executor: Added support for setting isolation level in begin (#57)
* update DCParser reference
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* added setting isolation level capability in begin
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* adding documents for BEGIN statement
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* readme: update url for build status (#56)
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* executor: uncommented some previously skipped test (#54)
* uncommented some previously skipped test
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* wait longer for update version
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* further enlarge test wait time for better stability
Signed-off-by: AmoebaProtozoa <davidyangad@gmail.com>
* variable,session: add search_path system variable. (#58)
* Fixed unit test bugs
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check , delete blank lines
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* style: fmt check
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Add postgres search_path system variable
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Modifying Comment Information
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* Added extra_float_digit system variable
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* fix:Delete unnecessary comments,Change the DCParser version
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* formatting: fixed formatting issues (#59)
* fixing formatting issues
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* typo fix
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* fixed a bug that params description will be sent when no params in handleStmtDescription (#61)
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
* infoschema , util, autoid: Compatible with some tables in pg_catalog (#63)
* Compatible with some tables in pg_catalog
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* add the correct license information and fix unit test
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* expression:PostgreSQL system function support (#64)
* Added the logic realization of some system functions.
Added unit tests for PostgreSQL system functions.
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* update DCParser version
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* fixed built in function unit tests (#66)
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* core, executor: add the implemet of setparamtype at show, showddl, datasource, limit plan. (#67)
* handle the implement of setparamtype at show, showddl or datasource plan
Signed-off-by: studiolee <1964773741@qq.com>
* handle the implement of setparamtype at limit plan
Signed-off-by: studiolee <1964773741@qq.com>
* add ut for setparamtype
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
Co-authored-by: studiolee <1964773741@qq.com>
* Executor: Sort param (#72)
* added test suites for sortParamOrder
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* removed magic
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* redo ParamMakerSorter
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* use 0 index
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* added ut case and fixed compatibility with MySQL
Signed-off-by: jk <51103574+pupillord@users.noreply.github.com>
Co-authored-by: jk <51103574+pupillord@users.noreply.github.com>
* Conn: Improved extended query handling (#73)
* removed unnecessary write back to client
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* fixed extended query describe
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* Server: Improved Extended Query Protocol (#74)
* binary long input
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* binary float support
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* new field to save pg oid
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* Bind binary (#75)
* binary long input
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* binary float support
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* new field to save pg oid
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* passed BenchMarkSQL
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* Server: Restructure Parse OID handling (#77)
* handle OID and formatCode
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* add pgOID conversion to parse handler
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* handle OID of 0
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* restructured parse oid handling
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
* removed unnecessary OID structure in bind
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Co-authored-by: pupillord <51103574+pupillord@users.noreply.github.com>
Co-authored-by: Cue Ray <50295175+Orion7r@users.noreply.github.com>
Co-authored-by: studiolee <1964773741@qq.com>
* add DML statement returning compatibility
* add insert returning support
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* update go mod
Signed-off-by: Orion7r <50295175+Orion7r@users.noreply.github.com>
* update go mod
Signed-off-by: OrionRay <50295175+Orion7r@users.noreply.github.com>
Co-authored-by: pupillord <51103574+pupillord@users.noreply.github.com>
Co-authored-by: RogueJin <21214103+RogueJin@users.noreply.github.com>
Co-authored-by: AmoebaProtozoa <davidyangad@gmail.com>
Co-authored-by: David <8039876+AmoebaProtozoa@users.noreply.github.com>
Co-authored-by: studiolee <1964773741@qq.com>1 parent 8dadaf3 commit 1ba8365
25 files changed
Lines changed: 723 additions & 24 deletions
File tree
- docs
- executor
- planner/core
- server
- session
- statistics
- store/mockstore/mocktikv
- util
- dc
- plancodec
- sqlexec
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
367 | 375 | | |
368 | 376 | | |
369 | 377 | | |
| |||
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
442 | 454 | | |
443 | 455 | | |
444 | 456 | | |
| |||
507 | 519 | | |
508 | 520 | | |
509 | 521 | | |
510 | | - | |
| 522 | + | |
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
| |||
532 | 544 | | |
533 | 545 | | |
534 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
535 | 554 | | |
536 | 555 | | |
537 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
538 | 598 | | |
539 | 599 | | |
540 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
723 | 725 | | |
724 | 726 | | |
725 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
726 | 734 | | |
727 | 735 | | |
728 | 736 | | |
| |||
1708 | 1716 | | |
1709 | 1717 | | |
1710 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1711 | 1724 | | |
1712 | 1725 | | |
1713 | 1726 | | |
| |||
1721 | 1734 | | |
1722 | 1735 | | |
1723 | 1736 | | |
| 1737 | + | |
1724 | 1738 | | |
1725 | 1739 | | |
1726 | 1740 | | |
| |||
1732 | 1746 | | |
1733 | 1747 | | |
1734 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1735 | 1754 | | |
1736 | 1755 | | |
1737 | 1756 | | |
| |||
3144 | 3163 | | |
3145 | 3164 | | |
3146 | 3165 | | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
200 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
201 | 217 | | |
202 | 218 | | |
203 | 219 | | |
204 | 220 | | |
205 | 221 | | |
206 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
| |||
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
341 | 368 | | |
342 | 369 | | |
343 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
0 commit comments