Skip to content

Commit 9abef0e

Browse files
committed
Simplify exception message in HiddenTargetColumn testing
1 parent 5fb11e9 commit 9abef0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlBulkCopyTest/HiddenTargetColumn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Column2 nvarchar(10) not null,
5656
SqlException sqlEx = Assert.Throws<SqlException>(() => bulkcopy.WriteToServer(reader));
5757

5858
Assert.Equal(13536, sqlEx.Number);
59-
Assert.StartsWith($"Cannot insert an explicit value into a GENERATED ALWAYS column in table '{dstConn.Database}.dbo.{destinationTable.Replace("[", "").Replace("]", "")}'.", sqlEx.Message);
59+
Assert.StartsWith($"Cannot insert an explicit value into a GENERATED ALWAYS column in table, sqlEx.Message);
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)