Skip to content

Commit

Permalink
test file update
Browse files Browse the repository at this point in the history
  • Loading branch information
KushaalShroff committed Aug 30, 2024
1 parent 307baa1 commit acb132d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 88 deletions.
49 changes: 0 additions & 49 deletions test/dotnet/ExpectedOutput/insertBulkErrors.out
Original file line number Diff line number Diff line change
Expand Up @@ -202,55 +202,6 @@ on
#Q#drop table destinationTable
#Q#create table sourceTable(c1 int, c2 CHAR(1024))
#Q#INSERT INTO sourceTable SELECT generate_series(1, 1001, 1), 'Foo'
#Q#create table destinationTable(c1 int unique, c2 CHAR(1024))
#Q#INSERT INTO destinationTable VALUES(1001, 'Foo')
#Q#create table sourceTable1(c1 int, c2 CHAR(1024))
#Q#INSERT INTO sourceTable1 VALUES(1001, 'Foo')
#Q#INSERT INTO sourceTable1 SELECT generate_series(1, 1000, 1), 'Foo'
#Q#Select count(c1) from sourceTable
#D#int
1001
#Q#select count(c1) from sourceTable1
#D#int
1001
#Q#SELECT set_config('enable_bitmapscan', 'off', false);
#D#text
off
#Q#SELECT set_config('enable_seqscan', 'on', false);
#D#text
on
#Q#SELECT set_config('enable_indexscan', 'off', false);
#D#text
off
#Q#Select count(c1) from destinationTable
#D#int
1
#Q#SELECT set_config('enable_bitmapscan', 'off', false);
#D#text
off
#Q#SELECT set_config('enable_seqscan', 'off', false);
#D#text
off
#Q#SELECT set_config('enable_indexscan', 'on', false);
#D#text
on
#Q#Select count(c1) from destinationTable
#D#int
1
#Q#SELECT set_config('enable_bitmapscan', 'on', false);
#D#text
on
#Q#SELECT set_config('enable_seqscan', 'on', false);
#D#text
on
#Q#SELECT set_config('enable_indexscan', 'on', false);
#D#text
on
#Q#drop table sourceTable
#Q#drop table sourceTable1
#Q#drop table destinationTable
#Q#create table sourceTable(c1 int, c2 CHAR(1024))
#Q#INSERT INTO sourceTable SELECT generate_series(1, 1001, 1), 'Foo'
#Q#create table destinationTable(c1 int, c2 CHAR(1024), check(c1 < 1000))
#Q#create table sourceTable1(c1 int, c2 CHAR(1024))
#Q#INSERT INTO sourceTable1 VALUES(1001, 'Foo')
Expand Down
39 changes: 0 additions & 39 deletions test/dotnet/input/InsertBulk/insertBulkErrors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,45 +169,6 @@ drop table sourceTable
drop table sourceTable1
drop table destinationTable


####### Unique #######
# last row is error (last packet will be flushed)
create table sourceTable(c1 int, c2 CHAR(1024))
INSERT INTO sourceTable SELECT generate_series(1, 1001, 1), 'Foo'
create table destinationTable(c1 int unique, c2 CHAR(1024))
INSERT INTO destinationTable VALUES(1001, 'Foo')

insertbulk#!#sourceTable#!#destinationTable

# 1st row is error (remaining packets to be discarded)
create table sourceTable1(c1 int, c2 CHAR(1024))
INSERT INTO sourceTable1 VALUES(1001, 'Foo')
INSERT INTO sourceTable1 SELECT generate_series(1, 1000, 1), 'Foo'

insertbulk#!#sourceTable1#!#destinationTable

Select count(c1) from sourceTable
select count(c1) from sourceTable1

# Seq scan
SELECT set_config('enable_bitmapscan', 'off', false);
SELECT set_config('enable_seqscan', 'on', false);
SELECT set_config('enable_indexscan', 'off', false);
Select count(c1) from destinationTable

# Index scan
SELECT set_config('enable_bitmapscan', 'off', false);
SELECT set_config('enable_seqscan', 'off', false);
SELECT set_config('enable_indexscan', 'on', false);
Select count(c1) from destinationTable

SELECT set_config('enable_bitmapscan', 'on', false);
SELECT set_config('enable_seqscan', 'on', false);
SELECT set_config('enable_indexscan', 'on', false);
drop table sourceTable
drop table sourceTable1
drop table destinationTable

####### Check #######
##### THESE TESTS ALSO TEST REUSING THE SAME CONNECTION
##### ON WHICH WE ERROR OUT AND NEED TO RESET TDS STATE
Expand Down

0 comments on commit acb132d

Please sign in to comment.