-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shreya Rai <[email protected]>
- Loading branch information
Showing
37 changed files
with
719 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
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
8 changes: 8 additions & 0 deletions
8
test/JDBC/expected/sys-fn-varbintohexsubstring-vu-cleanup.out
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,8 @@ | ||
DROP VIEW fn_varbintohexsubstring_vu_prepare_view | ||
GO | ||
|
||
DROP PROC fn_varbintohexsubstring_vu_prepare_proc | ||
GO | ||
|
||
DROP FUNCTION fn_varbintohexsubstring_vu_prepare_func | ||
GO |
16 changes: 16 additions & 0 deletions
16
test/JDBC/expected/sys-fn-varbintohexsubstring-vu-prepare.out
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,16 @@ | ||
-- Create dependant objects | ||
CREATE VIEW fn_varbintohexsubstring_vu_prepare_view AS | ||
SELECT sys.fn_varbintohexsubstring(1, CAST('0x1234' AS varbinary(128)), 1, 4) | ||
GO | ||
|
||
CREATE PROC fn_varbintohexsubstring_vu_prepare_proc AS | ||
SELECT sys.fn_varbintohexsubstring(1, CAST('0x1234' AS varbinary(128)), 1, 4) | ||
GO | ||
|
||
CREATE FUNCTION fn_varbintohexsubstring_vu_prepare_func() | ||
RETURNS nvarchar(128) | ||
AS | ||
BEGIN | ||
RETURN sys.fn_varbintohexsubstring(1, CAST('0x1234' AS varbinary(128)), 1, 4) | ||
END | ||
GO |
23 changes: 23 additions & 0 deletions
23
test/JDBC/expected/sys-fn-varbintohexsubstring-vu-verify.out
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,23 @@ | ||
SELECT * FROM fn_varbintohexsubstring_vu_prepare_view | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
||
|
||
EXEC fn_varbintohexsubstring_vu_prepare_proc | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
||
|
||
SELECT * FROM fn_varbintohexsubstring_vu_prepare_func() | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
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,8 @@ | ||
DROP VIEW loginproperty_vu_prepare_view | ||
GO | ||
|
||
DROP PROC loginproperty_vu_prepare_proc | ||
GO | ||
|
||
DROP FUNCTION loginproperty_vu_prepare_func | ||
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,16 @@ | ||
-- Create dependant objects | ||
CREATE VIEW loginproperty_vu_prepare_view AS | ||
SELECT sys.loginproperty('test_login', 'PasswordHash') | ||
GO | ||
|
||
CREATE PROC loginproperty_vu_prepare_proc AS | ||
SELECT sys.loginproperty('test_login', 'PasswordHash') | ||
GO | ||
|
||
CREATE FUNCTION loginproperty_vu_prepare_func() | ||
RETURNS nvarchar(128) | ||
AS | ||
BEGIN | ||
RETURN sys.loginproperty('test_login', 'PasswordHash') | ||
END | ||
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,23 @@ | ||
SELECT * FROM loginproperty_vu_prepare_view | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
||
|
||
EXEC loginproperty_vu_prepare_proc | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
||
|
||
SELECT * FROM loginproperty_vu_prepare_func() | ||
GO | ||
~~START~~ | ||
nvarchar | ||
<NULL> | ||
~~END~~ | ||
|
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 @@ | ||
USE master | ||
GO | ||
|
||
DROP VIEW sys_credentials_vu_prepare_view | ||
GO | ||
|
||
DROP PROC sys_credentials_vu_prepare_proc | ||
GO | ||
|
||
DROP FUNCTION sys_credentials_vu_prepare_func | ||
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,18 @@ | ||
USE master | ||
GO | ||
|
||
CREATE VIEW sys_credentials_vu_prepare_view AS | ||
SELECT * FROM sys.credentials | ||
GO | ||
|
||
CREATE PROC sys_credentials_vu_prepare_proc AS | ||
SELECT * FROM sys.credentials | ||
GO | ||
|
||
CREATE FUNCTION sys_credentials_vu_prepare_func() | ||
RETURNS INT | ||
AS | ||
BEGIN | ||
RETURN (SELECT COUNT(*) FROM sys.credentials) | ||
END | ||
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,31 @@ | ||
USE master | ||
GO | ||
|
||
SELECT * FROM sys.credentials | ||
GO | ||
~~START~~ | ||
int#!#varchar#!#nvarchar#!#datetime#!#datetime#!#nvarchar#!#int | ||
~~END~~ | ||
|
||
|
||
SELECT * FROM sys_credentials_vu_prepare_view | ||
GO | ||
~~START~~ | ||
int#!#varchar#!#nvarchar#!#datetime#!#datetime#!#nvarchar#!#int | ||
~~END~~ | ||
|
||
|
||
EXEC sys_credentials_vu_prepare_proc | ||
GO | ||
~~START~~ | ||
int#!#varchar#!#nvarchar#!#datetime#!#datetime#!#nvarchar#!#int | ||
~~END~~ | ||
|
||
|
||
SELECT sys_credentials_vu_prepare_func() | ||
GO | ||
~~START~~ | ||
int | ||
0 | ||
~~END~~ | ||
|
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 @@ | ||
USE master | ||
GO | ||
|
||
DROP VIEW sys_server_permissions_vu_prepare_view | ||
GO | ||
|
||
DROP PROC sys_server_permissions_vu_prepare_proc | ||
GO | ||
|
||
DROP FUNCTION sys_server_permissions_vu_prepare_func | ||
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,18 @@ | ||
USE master | ||
GO | ||
|
||
CREATE VIEW sys_server_permissions_vu_prepare_view AS | ||
SELECT * FROM sys.server_permissions | ||
GO | ||
|
||
CREATE PROC sys_server_permissions_vu_prepare_proc AS | ||
SELECT * FROM sys.server_permissions | ||
GO | ||
|
||
CREATE FUNCTION sys_server_permissions_vu_prepare_func() | ||
RETURNS INT | ||
AS | ||
BEGIN | ||
RETURN (SELECT COUNT(*) FROM sys.server_permissions) | ||
END | ||
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,31 @@ | ||
USE master | ||
GO | ||
|
||
SELECT * FROM sys.server_permissions | ||
GO | ||
~~START~~ | ||
tinyint#!#nvarchar#!#int#!#int#!#int#!#int#!#char#!#nvarchar#!#char#!#nvarchar | ||
~~END~~ | ||
|
||
|
||
SELECT * FROM sys_server_permissions_vu_prepare_view | ||
GO | ||
~~START~~ | ||
tinyint#!#nvarchar#!#int#!#int#!#int#!#int#!#char#!#nvarchar#!#char#!#nvarchar | ||
~~END~~ | ||
|
||
|
||
EXEC sys_server_permissions_vu_prepare_proc | ||
GO | ||
~~START~~ | ||
tinyint#!#nvarchar#!#int#!#int#!#int#!#int#!#char#!#nvarchar#!#char#!#nvarchar | ||
~~END~~ | ||
|
||
|
||
SELECT sys_server_permissions_vu_prepare_func() | ||
GO | ||
~~START~~ | ||
int | ||
0 | ||
~~END~~ | ||
|
Oops, something went wrong.