Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BABEL: BCP Related Bug-fixes (yugabyte#15)
In this commit we fix 3 issues: Bcp does not handle ‘db..table’ syntax. The issue was pertaining to sp_describe_first_resultset where SPI API was not able to resolve the DB..TABLE name. To fix this we are making use of ANTLR Parser to resolve the full name, in addition it also provides syntax checks. Bcp-in does not handle identity column. The issue was with views created from select statement does not inherit the constraints from the base columns which was the reason why sp_describe_first_resultset sent wrong values for identity columns. To Fix this we lookup the catalog at the time of view creation in TSQL Dialect to initialise the constraints for it. We had restricted sp_describe_first_result_set to only work with SELECT statements and for non-select statements we threw an error. With this commit we return 0 rows for any valid non-select query. Task: BABEL-3193, BABEL-3194, BABEL-3208 Author: Kushaal Shroff ([email protected]) Signed-off-by: Kuntal Ghosh ([email protected]) (cherry picked from commit d7610a64f34fdcd38e49c441fcd5de0ea5701cd6)
- Loading branch information