diff --git a/test/JDBC/expected/BABEL-2961.out b/test/JDBC/expected/BABEL-2961.out deleted file mode 100644 index ab4873e4fd..0000000000 --- a/test/JDBC/expected/BABEL-2961.out +++ /dev/null @@ -1,207 +0,0 @@ -USE master -GO - -CREATE TABLE myschema.t(a int) -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: schema "myschema" does not exist)~~ - - -EXEC dbo.myproc -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: procedure dbo.myproc() does not exist)~~ - - -SELECT * FROM dbo.t14 -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.t14" does not exist)~~ - - -DROP USER smith -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: Cannot drop the user 'smith', because it does not exist or you do not have permission.)~~ - - -CREATE DATABASE TestDB2961 -GO - -USE TestDB2961 -GO - -CREATE TABLE myschema.t(a int) -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: schema "myschema" does not exist)~~ - - -EXEC dbo.myproc -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: procedure dbo.myproc() does not exist)~~ - - -SELECT * FROM dbo.t14 -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.t14" does not exist)~~ - - -DROP USER smith -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: Cannot drop the user 'smith', because it does not exist or you do not have permission.)~~ - - -USE master -GO - -DROP DATABASE TestDB2961 -GO - -USE master -GO - -IF OBJECT_ID('dbo.NonExistentTable', 'U') IS NOT NULL - DROP TABLE dbo.NonExistentTable -GO - --- Create a view that attempts to select from a non-existent table -CREATE VIEW dbo.NonExistentTableView AS -SELECT * FROM dbo.NonExistentTable -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.nonexistenttable" does not exist)~~ - - -IF OBJECT_ID('dbo.NonExistentTableView', 'V') IS NOT NULL - DROP VIEW dbo.NonExistentTableView -GO - --- Create a function that attempts to select from a non-existent table -CREATE FUNCTION dbo.NonExistentTableFunc() -RETURNS TABLE -AS -RETURN -( - SELECT * FROM dbo.NonExistentTable -) -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.nonexistenttable" does not exist)~~ - - -IF OBJECT_ID('dbo.NonExistentTableFunc', 'IF') IS NOT NULL - DROP FUNCTION dbo.NonExistentTableFunc -GO - -IF OBJECT_ID('dbo.CallNonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.CallNonExistentProc -GO - --- Create a procedure that attempts to execute a non-existent procedure -CREATE PROCEDURE dbo.CallNonExistentProc -AS -BEGIN - EXEC dbo.NonExistentProc -END -GO -EXEC dbo.CallNonExistentProc -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: procedure dbo.nonexistentproc() does not exist)~~ - - -IF OBJECT_ID('dbo.DropNonExistentUser', 'P') IS NOT NULL - DROP PROCEDURE dbo.DropNonExistentUser -GO - -IF OBJECT_ID('dbo.NonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.NonExistentProc -GO - - --- Create a function that attempts to use a non-existent schema -CREATE FUNCTION nonexistent_schema.TestFunc() -RETURNS INT -AS -BEGIN - RETURN 1 -END -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: schema "nonexistent_schema" does not exist)~~ - - -IF OBJECT_ID('nonexistent_schema.TestFunc', 'FN') IS NOT NULL - DROP FUNCTION nonexistent_schema.TestFunc -GO - - --- Create a procedure that attempts to drop a non-existent user -CREATE PROCEDURE dbo.DropNonExistentUser -AS -BEGIN - DROP USER NonExistentUser -END -GO - -EXEC dbo.DropNonExistentUser -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: Cannot drop the user 'nonexistentuser', because it does not exist or you do not have permission.)~~ - - -IF OBJECT_ID('dbo.DropNonExistentUser', 'P') IS NOT NULL - DROP PROCEDURE dbo.DropNonExistentUser -GO - -IF OBJECT_ID('dbo.NonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.NonExistentProc -GO - - --- Attempt multiple operations within a single transaction -BEGIN TRANSACTION - CREATE TABLE dbo.TestTable (ID INT) - INSERT INTO dbo.TestTable VALUES (1) - SELECT * FROM dbo.NonExistentTable -COMMIT -GO -~~ROW COUNT: 1~~ - -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.nonexistenttable" does not exist)~~ - - --- Verify if the transaction rolled back correctly -SELECT * FROM dbo.TestTable -GO -~~ERROR (Code: 33557097)~~ - -~~ERROR (Message: relation "dbo.testtable" does not exist)~~ - - -IF OBJECT_ID('dbo.TestTable', 'U') IS NOT NULL - DROP TABLE dbo.TestTable -GO - -IF OBJECT_ID('dbo.NonExistentTable', 'U') IS NOT NULL - DROP TABLE dbo.NonExistentTable -GO diff --git a/test/JDBC/input/BABEL-2961.sql b/test/JDBC/input/BABEL-2961.sql deleted file mode 100644 index c937593843..0000000000 --- a/test/JDBC/input/BABEL-2961.sql +++ /dev/null @@ -1,145 +0,0 @@ -USE master -GO - -CREATE TABLE myschema.t(a int) -GO - -EXEC dbo.myproc -GO - -SELECT * FROM dbo.t14 -GO - -DROP USER smith -GO - -CREATE DATABASE TestDB2961 -GO - -USE TestDB2961 -GO - -CREATE TABLE myschema.t(a int) -GO - -EXEC dbo.myproc -GO - -SELECT * FROM dbo.t14 -GO - -DROP USER smith -GO - -USE master -GO - -DROP DATABASE TestDB2961 -GO - -USE master -GO - -IF OBJECT_ID('dbo.NonExistentTable', 'U') IS NOT NULL - DROP TABLE dbo.NonExistentTable -GO - --- Create a view that attempts to select from a non-existent table -CREATE VIEW dbo.NonExistentTableView AS -SELECT * FROM dbo.NonExistentTable -GO - -IF OBJECT_ID('dbo.NonExistentTableView', 'V') IS NOT NULL - DROP VIEW dbo.NonExistentTableView -GO - --- Create a function that attempts to select from a non-existent table -CREATE FUNCTION dbo.NonExistentTableFunc() -RETURNS TABLE -AS -RETURN -( - SELECT * FROM dbo.NonExistentTable -) -GO - -IF OBJECT_ID('dbo.NonExistentTableFunc', 'IF') IS NOT NULL - DROP FUNCTION dbo.NonExistentTableFunc -GO - -IF OBJECT_ID('dbo.CallNonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.CallNonExistentProc -GO - --- Create a procedure that attempts to execute a non-existent procedure -CREATE PROCEDURE dbo.CallNonExistentProc -AS -BEGIN - EXEC dbo.NonExistentProc -END -GO -EXEC dbo.CallNonExistentProc -GO - -IF OBJECT_ID('dbo.DropNonExistentUser', 'P') IS NOT NULL - DROP PROCEDURE dbo.DropNonExistentUser -GO - -IF OBJECT_ID('dbo.NonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.NonExistentProc -GO - - --- Create a function that attempts to use a non-existent schema -CREATE FUNCTION nonexistent_schema.TestFunc() -RETURNS INT -AS -BEGIN - RETURN 1 -END -GO - -IF OBJECT_ID('nonexistent_schema.TestFunc', 'FN') IS NOT NULL - DROP FUNCTION nonexistent_schema.TestFunc -GO - - --- Create a procedure that attempts to drop a non-existent user -CREATE PROCEDURE dbo.DropNonExistentUser -AS -BEGIN - DROP USER NonExistentUser -END -GO - -EXEC dbo.DropNonExistentUser -GO - -IF OBJECT_ID('dbo.DropNonExistentUser', 'P') IS NOT NULL - DROP PROCEDURE dbo.DropNonExistentUser -GO - -IF OBJECT_ID('dbo.NonExistentProc', 'P') IS NOT NULL - DROP PROCEDURE dbo.NonExistentProc -GO - - --- Attempt multiple operations within a single transaction -BEGIN TRANSACTION - CREATE TABLE dbo.TestTable (ID INT) - INSERT INTO dbo.TestTable VALUES (1) - SELECT * FROM dbo.NonExistentTable -COMMIT -GO - --- Verify if the transaction rolled back correctly -SELECT * FROM dbo.TestTable -GO - -IF OBJECT_ID('dbo.TestTable', 'U') IS NOT NULL - DROP TABLE dbo.TestTable -GO - -IF OBJECT_ID('dbo.NonExistentTable', 'U') IS NOT NULL - DROP TABLE dbo.NonExistentTable -GO \ No newline at end of file