Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information