forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix insert exec with type cast (babelfish-for-postgresql#2017)
Previously insert exec implement didn't consider the type cast during execution, this fix has add a implicit type cast between insert execution and exec execution if the type is mismatched. Engine pr : babelfish-for-postgresql/postgresql_modified_for_babelfish#256 Task: BABEL-2999, BABEL-4426 Signed-off-by: Zhibai Song <[email protected]>
- Loading branch information
1 parent
abaa687
commit 8a06e90
Showing
28 changed files
with
1,397 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
drop table if exists t2_BABEL2999; | ||
GO | ||
|
||
drop table t1_BABEL2999; | ||
GO | ||
|
||
drop table t3_BABEL2999; | ||
GO | ||
|
||
drop table t3_BABEL2999_2; | ||
GO | ||
|
||
drop procedure p1_BABEL2999; | ||
GO | ||
|
||
drop procedure p2_BABEL2999 | ||
GO | ||
|
||
drop procedure p3_BABEL2999 | ||
GO | ||
|
||
drop table t4_BABEL2999; | ||
GO | ||
|
||
drop table t5_BABEL2999; | ||
GO | ||
|
||
drop table t6_BABEL2999 | ||
GO |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
drop table if exists t1_BABEL2999; | ||
GO | ||
|
||
create table t1_BABEL2999(b varchar(10)); | ||
GO | ||
|
||
create table t2_BABEL2999(b int); | ||
GO | ||
|
||
create table t3_BABEL2999(b varchar); | ||
GO | ||
|
||
create procedure p1_BABEL2999 as select 'abc'; | ||
GO | ||
|
||
create procedure p2_BABEL2999 as select 555; | ||
GO | ||
|
||
create table t3_BABEL2999_2(a int, b datetime, c varchar(20)) | ||
GO | ||
|
||
create procedure p3_BABEL2999 as select '123', 123, 123; | ||
GO | ||
|
||
create table t4_BABEL2999( a binary(30), b varbinary(30), c varchar(30), d datetime, e smalldatetime) | ||
GO | ||
|
||
create table t5_BABEL2999( a decimal, b numeric) | ||
GO | ||
|
||
create table t6_BABEL2999( a int, b tinyint, c smallint) | ||
GO |
Oops, something went wrong.