-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7a02d1
commit 4805c4e
Showing
6 changed files
with
110 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
drop view babel_4688_v1 | ||
go | ||
|
||
drop view babel_4688_v2 | ||
go | ||
|
||
drop view babel_4688_v3 | ||
go | ||
|
||
drop view babel_4688_v4 | ||
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,17 @@ | ||
create view babel_4688_v1 as select cast(cast('a' as binary(2)) as varchar(2)) | ||
go | ||
|
||
create view babel_4688_v2 as select cast(cast('a' as binary(2)) as pg_catalog.varchar(2)) | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'ignore'; | ||
go | ||
|
||
create view babel_4688_v3 as select cast(cast('ab' as rowversion) as varchar(2)) | ||
go | ||
|
||
create view babel_4688_v4 as select cast(cast('ab' as rowversion) as pg_catalog.varchar(2)) | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'strict'; | ||
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,37 @@ | ||
select * from babel_4688_v1 | ||
go | ||
~~START~~ | ||
varchar | ||
a | ||
~~END~~ | ||
|
||
|
||
select * from babel_4688_v2 | ||
go | ||
~~START~~ | ||
varchar | ||
a | ||
~~END~~ | ||
|
||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'ignore'; | ||
go | ||
|
||
select * from babel_4688_v3 | ||
go | ||
~~START~~ | ||
varchar | ||
ab | ||
~~END~~ | ||
|
||
|
||
select * from babel_4688_v4 | ||
go | ||
~~START~~ | ||
varchar | ||
ab | ||
~~END~~ | ||
|
||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'strict'; | ||
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,11 @@ | ||
drop view babel_4688_v1 | ||
go | ||
|
||
drop view babel_4688_v2 | ||
go | ||
|
||
drop view babel_4688_v3 | ||
go | ||
|
||
drop view babel_4688_v4 | ||
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,17 @@ | ||
create view babel_4688_v1 as select cast(cast('a' as binary(2)) as varchar(2)) | ||
go | ||
|
||
create view babel_4688_v2 as select cast(cast('a' as binary(2)) as pg_catalog.varchar(2)) | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'ignore'; | ||
go | ||
|
||
create view babel_4688_v3 as select cast(cast('ab' as rowversion) as varchar(2)) | ||
go | ||
|
||
create view babel_4688_v4 as select cast(cast('ab' as rowversion) as pg_catalog.varchar(2)) | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'strict'; | ||
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,17 @@ | ||
select * from babel_4688_v1 | ||
go | ||
|
||
select * from babel_4688_v2 | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'ignore'; | ||
go | ||
|
||
select * from babel_4688_v3 | ||
go | ||
|
||
select * from babel_4688_v4 | ||
go | ||
|
||
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_rowversion', 'strict'; | ||
go |