diff --git a/test/dotnet/ExpectedOutput/insertBulkErrors.out b/test/dotnet/ExpectedOutput/insertBulkErrors.out index fb375dc432..a4e892b12b 100644 --- a/test/dotnet/ExpectedOutput/insertBulkErrors.out +++ b/test/dotnet/ExpectedOutput/insertBulkErrors.out @@ -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') diff --git a/test/dotnet/input/InsertBulk/insertBulkErrors.txt b/test/dotnet/input/InsertBulk/insertBulkErrors.txt index 4ed635f3bc..0b9e869a4b 100644 --- a/test/dotnet/input/InsertBulk/insertBulkErrors.txt +++ b/test/dotnet/input/InsertBulk/insertBulkErrors.txt @@ -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