Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up left over objects properly #3325

3 changes: 3 additions & 0 deletions test/JDBC/expected/BABEL-3952-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -651,3 +651,6 @@ time
12:24:00.0000000
~~END~~


DROP TABLE IF EXISTS dbucket
GO
3 changes: 3 additions & 0 deletions test/JDBC/expected/BABEL-3953-datetrunc-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ time
~~END~~


DROP TABLE IF EXISTS dtrunc
GO

SET DATEFIRST 1
SELECT DATETRUNC(ISO_WEEK, CAST('2020-09-13 21:32:32.23' as datetime2))
SELECT DATETRUNC(WEEK, CAST('2020-09-13 21:32:32.23' as datetime2))
Expand Down
3 changes: 3 additions & 0 deletions test/JDBC/expected/Test-Identity-vu-cleanup.out
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ GO
DROP PROCEDURE test_identity_vu_prepare_p5
GO

DROP VIEW scope_identity_view
GO

DROP TABLE test_identity_vu_prepare_t1
GO

Expand Down
4 changes: 3 additions & 1 deletion test/JDBC/expected/Test-sp_reset_connection.out
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ GO
int
~~END~~

DROP TABLE IF EXISTS sp_reset_connection_test_table;
GO

-- 3. Test temp tables are deleted on reset
CREATE TABLE #babel_temp_table (ID INT identity(1,1), Data INT)
Expand Down Expand Up @@ -653,7 +655,7 @@ Result (cost=0.00..0.01 rows=1 width=4)

~~START~~
text
Babelfish T-SQL Batch Parsing Time: 0.085 ms
Babelfish T-SQL Batch Parsing Time: 0.075 ms
~~END~~


Expand Down
2 changes: 2 additions & 0 deletions test/JDBC/expected/babel_ddl.out
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,5 @@ drop table computed_column_t1;
GO
drop table computed_column_t2;
GO
drop table computed_column_error;
GO
2 changes: 2 additions & 0 deletions test/JDBC/expected/babel_unicode_charset.out
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ nvarchar
世界
~~END~~

drop table if exists unicode_test;
go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ GO
int
~~END~~

DROP TABLE IF EXISTS sp_reset_connection_test_table;
GO

-- 3. Test temp tables are deleted on reset
CREATE TABLE #babel_temp_table (ID INT identity(1,1), Data INT)
Expand Down
3 changes: 3 additions & 0 deletions test/JDBC/expected/sys-eomonth-vu-cleanup.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ GO

DROP PROCEDURE IF EXISTS GetEndOfNextMonthDate_EOMONTH;
GO

DROP Table eomonth_datestable
GO
3 changes: 3 additions & 0 deletions test/JDBC/expected/sys-index_columns-vu-cleanup.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ GO
USE master
GO

DROP table sys_index_columns_vu_prepare_t1
GO

DROP TABLE sys_index_columns_vu_prepare_t3;
GO

Expand Down
3 changes: 3 additions & 0 deletions test/JDBC/expected/table_variable_xact_errors.out
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,9 @@ GO
~~ERROR (Message: missing FROM-clause entry for table "i")~~


DROP TABLE mytab
GO

DROP PROCEDURE myproc
GO

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ GO
~~ERROR (Message: missing FROM-clause entry for table "i")~~


DROP TABLE mytab
GO

DROP PROCEDURE myproc
GO

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ GO
~~ERROR (Message: missing FROM-clause entry for table "i")~~


DROP TABLE mytab
GO

DROP PROCEDURE myproc
GO

Expand Down
2 changes: 2 additions & 0 deletions test/JDBC/expected/todatetimeoffset.out
Original file line number Diff line number Diff line change
Expand Up @@ -601,3 +601,5 @@ GO
~~ERROR (Message: Conversion failed when converting date and/or time from character string.)~~


drop table tem
GO
5 changes: 4 additions & 1 deletion test/JDBC/input/BABEL-3952-vu-verify.sql
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,7 @@ Create table dbucket(a time)
insert into dbucket (a) values(date_bucket(minute,12, CAST('12:32:23.23' as time)))
Select * from dbucket
Select date_bucket(second,10, a) from dbucket
GO
GO

DROP TABLE IF EXISTS dbucket
GO
3 changes: 3 additions & 0 deletions test/JDBC/input/Test-Identity-vu-cleanup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ GO
DROP PROCEDURE test_identity_vu_prepare_p5
GO

DROP VIEW scope_identity_view
GO

DROP TABLE test_identity_vu_prepare_t1
GO

Expand Down
4 changes: 3 additions & 1 deletion test/JDBC/input/babel_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,6 @@ GO
drop table computed_column_t1;
GO
drop table computed_column_t2;
GO
GO
drop table computed_column_error;
GO
2 changes: 2 additions & 0 deletions test/JDBC/input/babel_unicode_charset.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ select "你好世界" from unicode_test with(nolock);
go
select 中文列名 from unicode_test with(nolock);
go
drop table if exists unicode_test;
go
3 changes: 3 additions & 0 deletions test/JDBC/input/functions/BABEL-3953-datetrunc-vu-verify.sql
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ Select * from dtrunc
Select datetrunc(second, a) from dtrunc
GO

DROP TABLE IF EXISTS dtrunc
GO

SET DATEFIRST 1
SELECT DATETRUNC(ISO_WEEK, CAST('2020-09-13 21:32:32.23' as datetime2))
SELECT DATETRUNC(WEEK, CAST('2020-09-13 21:32:32.23' as datetime2))
Expand Down
3 changes: 3 additions & 0 deletions test/JDBC/input/functions/sys-eomonth-vu-cleanup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ GO

DROP PROCEDURE IF EXISTS GetEndOfNextMonthDate_EOMONTH;
GO

DROP Table eomonth_datestable
GO
2 changes: 1 addition & 1 deletion test/JDBC/input/sp_columns_100.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- sla_for_parallel_query_enforced 2000000
-- sla_for_parallel_query_enforced 300000
-- create tables with most of the datatypes
create table var(a char(10), b nchar(9), c nvarchar(8), d varchar(7), e text, f ntext, g varbinary(10), h binary(9), i image, j xml)
go
Expand Down
2 changes: 2 additions & 0 deletions test/JDBC/input/storedProcedures/Test-sp_reset_connection.mix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ COMMIT TRANSACTION
GO
SELECT * FROM sp_reset_connection_test_table
GO
DROP TABLE IF EXISTS sp_reset_connection_test_table;
GO

-- 3. Test temp tables are deleted on reset
CREATE TABLE #babel_temp_table (ID INT identity(1,1), Data INT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ GO
EXECUTE myproc2
GO

DROP TABLE mytab
GO

DROP PROCEDURE myproc
GO

Expand Down
2 changes: 2 additions & 0 deletions test/JDBC/input/todatetimeoffset.sql
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,5 @@ GO
Select todatetimeoffset('10000-12-31 23:12:00.123 +00:00',743)
GO

drop table tem
GO
3 changes: 3 additions & 0 deletions test/JDBC/input/views/sys-index_columns-vu-cleanup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ GO
USE master
GO

DROP table sys_index_columns_vu_prepare_t1
GO

DROP TABLE sys_index_columns_vu_prepare_t3;
GO

Expand Down
2 changes: 0 additions & 2 deletions test/JDBC/parallel_query_jdbc_schedule
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ ignore#!#BABEL-3013
ignore#!#BABEL-SP_TABLE_PRIVILEGES
ignore#!#ISC-Columns-vu-verify
ignore#!#four-part-names-vu-verify
#TODO: BABEL-5472
ignore#!#sp_columns_100