Skip to content

Commit

Permalink
Update DataTableUploadDestinationTests.cs
Browse files Browse the repository at this point in the history
Fix bit vs tinyint boolean
  • Loading branch information
jas88 committed May 23, 2024
1 parent 237024d commit 1932777
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,9 @@ public void TwoBatch_BooleanResizingTest(DatabaseType dbType, bool giveNullValue

destination.ProcessPipelineData(dt1, toConsole, token);

Assert.That(db.ExpectTable("DataTableUploadDestinationTests").DiscoverColumn("TestedCol").DataType.SQLType, Is.EqualTo("bit"));
// MS SQL is odd and uses "bit" as a boolean, MySQL has a boolean type but aliases it to tinyint(1)
Assert.That(db.ExpectTable("DataTableUploadDestinationTests").DiscoverColumn("TestedCol").DataType?.SQLType,
Is.EqualTo(dbType == DatabaseType.MicrosoftSQLServer ? "bit" : "tinyint(1)"));

destination.ProcessPipelineData(dt2, toMemory, token);

Expand Down

0 comments on commit 1932777

Please sign in to comment.