Skip to content

Commit

Permalink
Fix sp_reset_connection test (#3031)
Browse files Browse the repository at this point in the history
"GO" statement was missing after sys.sp_reset_connection in Test-sp_reset_connection test due to which GUC was not resetting. Adding it to fix the test.

Task: BABEL-429

Signed-off-by: Sharath BP <[email protected]>
  • Loading branch information
sharathbp authored Oct 21, 2024
1 parent c25a3bb commit 4e2c2a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions test/JDBC/expected/Test-sp_reset_connection.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
-- tsql
-- 1. Test resets GUC variables
SELECT @@lock_timeout;
GO
~~START~~
int
-1
~~END~~

SET lock_timeout 0;
GO
SELECT @@lock_timeout;
Expand All @@ -10,12 +17,12 @@ int
~~END~~

EXEC sys.sp_reset_connection
-- TODO: GUC is not resetting
GO
SELECT @@lock_timeout;
GO
~~START~~
int
0
-1
~~END~~


Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
-- tsql
-- 1. Test resets GUC variables
SELECT @@lock_timeout;
GO
SET lock_timeout 0;
GO
SELECT @@lock_timeout;
GO
EXEC sys.sp_reset_connection
-- TODO: GUC is not resetting
GO
SELECT @@lock_timeout;
GO

Expand Down

0 comments on commit 4e2c2a3

Please sign in to comment.