@@ -668,7 +668,7 @@ private static void AssertSingularEquals(QuerySql.GetPostgresTypesAggRow expecte
668
668
{
669
669
Impl = $$ """
670
670
[Test]
671
- [TestCase(false, true, 0x32, 13, 2084, 3124, -54355, 324245, -67865, 9787668656, "&", "\u1857", "\u2649", "Sheena is a Punk Rocker", "Holiday in Cambodia", "London's Calling", "London's Burning", "Police & Thieves", "2000-1-30", "1983-11-3 02:01:22", new byte[] { 0x15, 0x16, 0x17 }, new byte[] { 0x15, 0x22 }, new byte[] { 0x23 }, new byte[] { 0x33, 0x13 }, new byte[] { 0x11, 0x62, 0x10 }, new byte[] { 0x38, 0x45, 0x06 })]
671
+ [TestCase(false, true, 0x32, 13, 2084, 3124, -54355, 324245, -67865, 9787668656, "&", "\u1857", "\u2649", "Sheena is a Punk Rocker", "Holiday in Cambodia", "London's Calling", "London's Burning", "Police & Thieves", "2000-1-30", "1983-11-3 02:01:22", new byte[] { 0x15, 0x16, 0x17 }, new byte[] { 0x15, 0x24 }, new byte[] { 0x23 }, new byte[] { 0x33, 0x13 }, new byte[] { 0x11, 0x62, 0x10 }, new byte[] { 0x38, 0x45, 0x06 })]
672
672
[TestCase(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "1970-1-1 00:00:01", new byte[] { 0x0, 0x0, 0x0 }, new byte[] { }, new byte[] { }, new byte[] { }, new byte[] { }, new byte[] { })]
673
673
[TestCase(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "1970-1-1 00:00:01", null, null, null, null, null, null)]
674
674
public async Task TestMySqlTypes(
@@ -797,9 +797,9 @@ private static void AssertSingularEquals(QuerySql.GetMysqlTypesRow expected, Que
797
797
{
798
798
Impl = $$ """
799
799
[Test]
800
- [TestCase(100, true, false, 0x05, -13, 324, -98760, 987965, 3132423, -7785442, 3.4f, -31.555666, 11.098643, 34.4424, 423.2445, 998.9994542, 21.214312452534, "D", "\u4321", "\u2345", "Parasite", "Clockwork Orange", "Dr. Strangelove", "Interview with a Vampire", "Memento", 1993, "2000-1-30", "1983-11-3 02:01:22", "2010-1-30 08:11:00")]
801
- [TestCase(500, false, true, 0x12, 8, -555, 66979, -423425, -9798642, 3297398, 1.23f, 99.35542, 32.33345, -12.3456, -55.55556, -11.1123334, 33.423542356346, "3", "\u1234", "\u6543", "Splendor in the Grass", "Pulp Fiction", "Chinatown", "Repulsion", "Million Dollar Baby", 2025, "2012-9-20", "2012-1-20 22:12:34", "1984-6-5 20:12:12")]
802
- [TestCase(10, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "1970-1-1 00:00:01")]
800
+ [TestCase(100, true, false, 0x05, -13, 324, -98760, 987965, 3132423, -7785442, 3.4f, -31.555666, 11.098643, 34.4424, 423.2445, 998.9994542, 21.214312452534, "D", "\u4321", "\u2345", "Parasite", "Clockwork Orange", "Dr. Strangelove", "Interview with a Vampire", "Memento", 1993, "2000-1-30", "1983-11-3 02:01:22", "2010-1-30 08:11:00", new byte[] { 0x15, 0x16, 0x17 }, new byte[] { 0x15, 0x20 }, new byte[] { 0x23 }, new byte[] { 0x33, 0x13 }, new byte[] { 0x11, 0x62, 0x10 }, new byte[] { 0x38, 0x45, 0x06, 0x04 } )]
801
+ [TestCase(500, false, true, 0x12, 8, -555, 66979, -423425, -9798642, 3297398, 1.23f, 99.35542, 32.33345, -12.3456, -55.55556, -11.1123334, 33.423542356346, "3", "\u1234", "\u6543", "Splendor in the Grass", "Pulp Fiction", "Chinatown", "Repulsion", "Million Dollar Baby", 2025, "2012-9-20", "2012-1-20 22:12:34", "1984-6-5 20:12:12", new byte[] { 0x0, 0x0, 0x0 }, new byte[] { }, new byte[] { }, new byte[] { }, new byte[] { }, new byte[] { } )]
802
+ [TestCase(10, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "1970-1-1 00:00:01", null, null, null, null, null, null )]
803
803
public async Task TestCopyFrom(
804
804
int batchSize,
805
805
bool? cBool,
@@ -829,7 +829,13 @@ public async Task TestCopyFrom(
829
829
short? cYear,
830
830
DateTime? cDate,
831
831
DateTime? cDatetime,
832
- DateTime? cTimestamp)
832
+ DateTime? cTimestamp,
833
+ byte[] cBinary,
834
+ byte[] cVarbinary,
835
+ byte[] cTinyblob,
836
+ byte[] cBlob,
837
+ byte[] cMediumblob,
838
+ byte[] cLongblob)
833
839
{
834
840
var batchArgs = Enumerable.Range(0, batchSize)
835
841
.Select(_ => new QuerySql.InsertMysqlTypesBatchArgs
@@ -853,7 +859,13 @@ public async Task TestCopyFrom(
853
859
CYear = cYear,
854
860
CDate = cDate,
855
861
CDatetime = cDatetime,
856
- CTimestamp = cTimestamp
862
+ CTimestamp = cTimestamp,
863
+ CBinary = cBinary,
864
+ CVarbinary = cVarbinary,
865
+ CTinyblob = cTinyblob,
866
+ CBlob = cBlob,
867
+ CMediumblob = cMediumblob,
868
+ CLongblob = cLongblob
857
869
})
858
870
.ToList();
859
871
await QuerySql.InsertMysqlTypesBatch(batchArgs);
@@ -879,7 +891,13 @@ public async Task TestCopyFrom(
879
891
CYear = cYear,
880
892
CDate = cDate,
881
893
CDatetime = cDatetime,
882
- CTimestamp = cTimestamp
894
+ CTimestamp = cTimestamp,
895
+ CBinary = cBinary,
896
+ CVarbinary = cVarbinary,
897
+ CTinyblob = cTinyblob,
898
+ CBlob = cBlob,
899
+ CMediumblob = cMediumblob,
900
+ CLongblob = cLongblob
883
901
};
884
902
var actual = await QuerySql.GetMysqlTypesAgg();
885
903
AssertSingularEquals(expected, actual{{ UnknownRecordValuePlaceholder }} );
@@ -908,14 +926,20 @@ private static void AssertSingularEquals(QuerySql.GetMysqlTypesAggRow expected,
908
926
Assert.That(actual.CDate, Is.EqualTo(expected.CDate));
909
927
Assert.That(actual.CDatetime, Is.EqualTo(expected.CDatetime));
910
928
Assert.That(actual.CTimestamp, Is.EqualTo(expected.CTimestamp));
929
+ Assert.That(actual.CBinary, Is.EqualTo(expected.CBinary));
930
+ Assert.That(actual.CVarbinary, Is.EqualTo(expected.CVarbinary));
931
+ Assert.That(actual.CTinyblob, Is.EqualTo(expected.CTinyblob));
932
+ Assert.That(actual.CBlob, Is.EqualTo(expected.CBlob));
933
+ Assert.That(actual.CMediumblob, Is.EqualTo(expected.CMediumblob));
934
+ Assert.That(actual.CLongblob, Is.EqualTo(expected.CLongblob));
911
935
}
912
936
"""
913
937
} ,
914
938
[ KnownTestType . SqliteDataTypes ] = new TestImpl
915
939
{
916
940
Impl = $$ """
917
941
[Test]
918
- [TestCase(-54355, 9787.66, "Songs of Love and Hate", new byte[] { 0x15, 0x20, 0x22 })]
942
+ [TestCase(-54355, 9787.66, "Songs of Love and Hate", new byte[] { 0x15, 0x20, 0x33 })]
919
943
[TestCase(null, null, null, new byte[] { })]
920
944
[TestCase(null, null, null, null)]
921
945
public async Task TestSqliteTypes(
0 commit comments