DateOnly/TimeOnly fields are added to hte expected sql

pull/175/head
Christopher Jolly 2 years ago
parent 6fe74929cf
commit 1b7e72790c

@ -35,7 +35,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests
const string expected = @"#Dual.ID ---> [integer]
BinaryForeignKeyDataType.BinaryKeyDataTypeId ---> [nullable varbinary] [MaxLength = 255]
BinaryForeignKeyDataType.Id ---> [varbinary] [MaxLength = 4]
BinaryKeyDataType.Ex ---> [nullable varbinary] [MaxLength = -1]
BinaryKeyDataType.Ex ---> [nullable varbinary] [MaxLength = 510]
BinaryKeyDataType.Id ---> [varbinary] [MaxLength = 255]
BuiltInDataTypes.Enum16 ---> [varbinary] [MaxLength = 2]
BuiltInDataTypes.Enum32 ---> [varbinary] [MaxLength = 4]
@ -50,6 +50,7 @@ BuiltInDataTypes.PartitionId ---> [varbinary] [MaxLength = 4]
BuiltInDataTypes.TestBoolean ---> [varbinary] [MaxLength = 1]
BuiltInDataTypes.TestByte ---> [varbinary] [MaxLength = 1]
BuiltInDataTypes.TestCharacter ---> [varbinary] [MaxLength = 2]
BuiltInDataTypes.TestDateOnly ---> [varbinary] [MaxLength = 510]
BuiltInDataTypes.TestDateTime ---> [varbinary] [MaxLength = 8]
BuiltInDataTypes.TestDateTimeOffset ---> [varbinary] [MaxLength = 12]
BuiltInDataTypes.TestDecimal ---> [varbinary] [MaxLength = 16]
@ -59,6 +60,7 @@ BuiltInDataTypes.TestInt32 ---> [varbinary] [MaxLength = 4]
BuiltInDataTypes.TestInt64 ---> [varbinary] [MaxLength = 8]
BuiltInDataTypes.TestSignedByte ---> [varbinary] [MaxLength = 1]
BuiltInDataTypes.TestSingle ---> [varbinary] [MaxLength = 4]
BuiltInDataTypes.TestTimeOnly ---> [varbinary] [MaxLength = 8]
BuiltInDataTypes.TestTimeSpan ---> [varbinary] [MaxLength = 8]
BuiltInDataTypes.TestUnsignedInt16 ---> [varbinary] [MaxLength = 2]
BuiltInDataTypes.TestUnsignedInt32 ---> [varbinary] [MaxLength = 4]
@ -76,6 +78,7 @@ BuiltInDataTypesShadow.PartitionId ---> [varbinary] [MaxLength = 4]
BuiltInDataTypesShadow.TestBoolean ---> [varbinary] [MaxLength = 1]
BuiltInDataTypesShadow.TestByte ---> [varbinary] [MaxLength = 1]
BuiltInDataTypesShadow.TestCharacter ---> [varbinary] [MaxLength = 2]
BuiltInDataTypesShadow.TestDateOnly ---> [varbinary] [MaxLength = 510]
BuiltInDataTypesShadow.TestDateTime ---> [varbinary] [MaxLength = 8]
BuiltInDataTypesShadow.TestDateTimeOffset ---> [varbinary] [MaxLength = 12]
BuiltInDataTypesShadow.TestDecimal ---> [varbinary] [MaxLength = 16]
@ -85,6 +88,7 @@ BuiltInDataTypesShadow.TestInt32 ---> [varbinary] [MaxLength = 4]
BuiltInDataTypesShadow.TestInt64 ---> [varbinary] [MaxLength = 8]
BuiltInDataTypesShadow.TestSignedByte ---> [varbinary] [MaxLength = 1]
BuiltInDataTypesShadow.TestSingle ---> [varbinary] [MaxLength = 4]
BuiltInDataTypesShadow.TestTimeOnly ---> [varbinary] [MaxLength = 8]
BuiltInDataTypesShadow.TestTimeSpan ---> [varbinary] [MaxLength = 8]
BuiltInDataTypesShadow.TestUnsignedInt16 ---> [varbinary] [MaxLength = 2]
BuiltInDataTypesShadow.TestUnsignedInt32 ---> [varbinary] [MaxLength = 4]
@ -99,10 +103,11 @@ BuiltInNullableDataTypes.EnumU32 ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypes.EnumU64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.Id ---> [varbinary] [MaxLength = 4]
BuiltInNullableDataTypes.PartitionId ---> [varbinary] [MaxLength = 4]
BuiltInNullableDataTypes.TestByteArray ---> [nullable varbinary] [MaxLength = -1]
BuiltInNullableDataTypes.TestByteArray ---> [nullable varbinary] [MaxLength = 510]
BuiltInNullableDataTypes.TestNullableBoolean ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypes.TestNullableByte ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypes.TestNullableCharacter ---> [nullable varbinary] [MaxLength = 2]
BuiltInNullableDataTypes.TestNullableDateOnly ---> [nullable varbinary] [MaxLength = 510]
BuiltInNullableDataTypes.TestNullableDateTime ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.TestNullableDateTimeOffset ---> [nullable varbinary] [MaxLength = 12]
BuiltInNullableDataTypes.TestNullableDecimal ---> [nullable varbinary] [MaxLength = 16]
@ -112,11 +117,12 @@ BuiltInNullableDataTypes.TestNullableInt32 ---> [nullable varbinary] [MaxLength
BuiltInNullableDataTypes.TestNullableInt64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.TestNullableSignedByte ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypes.TestNullableSingle ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypes.TestNullableTimeOnly ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.TestNullableTimeSpan ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.TestNullableUnsignedInt16 ---> [nullable varbinary] [MaxLength = 2]
BuiltInNullableDataTypes.TestNullableUnsignedInt32 ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypes.TestNullableUnsignedInt64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypes.TestString ---> [nullable varbinary] [MaxLength = -1]
BuiltInNullableDataTypes.TestString ---> [nullable varbinary] [MaxLength = 510]
BuiltInNullableDataTypesShadow.Enum16 ---> [nullable varbinary] [MaxLength = 2]
BuiltInNullableDataTypesShadow.Enum32 ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.Enum64 ---> [nullable varbinary] [MaxLength = 8]
@ -127,10 +133,11 @@ BuiltInNullableDataTypesShadow.EnumU32 ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.EnumU64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.Id ---> [varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.PartitionId ---> [varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.TestByteArray ---> [nullable varbinary] [MaxLength = -1]
BuiltInNullableDataTypesShadow.TestByteArray ---> [nullable varbinary] [MaxLength = 510]
BuiltInNullableDataTypesShadow.TestNullableBoolean ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypesShadow.TestNullableByte ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypesShadow.TestNullableCharacter ---> [nullable varbinary] [MaxLength = 2]
BuiltInNullableDataTypesShadow.TestNullableDateOnly ---> [nullable varbinary] [MaxLength = 510]
BuiltInNullableDataTypesShadow.TestNullableDateTime ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.TestNullableDateTimeOffset ---> [nullable varbinary] [MaxLength = 12]
BuiltInNullableDataTypesShadow.TestNullableDecimal ---> [nullable varbinary] [MaxLength = 16]
@ -140,31 +147,33 @@ BuiltInNullableDataTypesShadow.TestNullableInt32 ---> [nullable varbinary] [MaxL
BuiltInNullableDataTypesShadow.TestNullableInt64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.TestNullableSignedByte ---> [nullable varbinary] [MaxLength = 1]
BuiltInNullableDataTypesShadow.TestNullableSingle ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.TestNullableTimeOnly ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.TestNullableTimeSpan ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.TestNullableUnsignedInt16 ---> [nullable varbinary] [MaxLength = 2]
BuiltInNullableDataTypesShadow.TestNullableUnsignedInt32 ---> [nullable varbinary] [MaxLength = 4]
BuiltInNullableDataTypesShadow.TestNullableUnsignedInt64 ---> [nullable varbinary] [MaxLength = 8]
BuiltInNullableDataTypesShadow.TestString ---> [nullable varbinary] [MaxLength = -1]
BuiltInNullableDataTypesShadow.TestString ---> [nullable varbinary] [MaxLength = 510]
DateTimeEnclosure.DateTimeOffset ---> [nullable varbinary] [MaxLength = 12]
DateTimeEnclosure.Id ---> [varbinary] [MaxLength = 4]
EmailTemplate.Id ---> [varbinary] [MaxLength = 16]
EmailTemplate.TemplateType ---> [varbinary] [MaxLength = 4]
MaxLengthDataTypes.ByteArray5 ---> [nullable varbinary] [MaxLength = 5]
MaxLengthDataTypes.ByteArray9000 ---> [nullable varbinary] [MaxLength = -1]
MaxLengthDataTypes.ByteArray9000 ---> [nullable varbinary] [MaxLength = 255]
MaxLengthDataTypes.Id ---> [varbinary] [MaxLength = 4]
MaxLengthDataTypes.String3 ---> [nullable varbinary] [MaxLength = 3]
MaxLengthDataTypes.String9000 ---> [nullable varbinary] [MaxLength = -1]
MaxLengthDataTypes.String9000 ---> [nullable varbinary] [MaxLength = 255]
MaxLengthDataTypes.StringUnbounded ---> [nullable varbinary] [MaxLength = 255]
StringEnclosure.Id ---> [varbinary] [MaxLength = 4]
StringEnclosure.Value ---> [nullable varbinary] [MaxLength = -1]
StringEnclosure.Value ---> [nullable varbinary] [MaxLength = 510]
StringForeignKeyDataType.Id ---> [varbinary] [MaxLength = 4]
StringForeignKeyDataType.StringKeyDataTypeId ---> [nullable varbinary] [MaxLength = 255]
StringKeyDataType.Id ---> [varbinary] [MaxLength = 255]
UnicodeDataTypes.Id ---> [varbinary] [MaxLength = 4]
UnicodeDataTypes.StringAnsi ---> [nullable varbinary] [MaxLength = -1]
UnicodeDataTypes.StringAnsi ---> [nullable varbinary] [MaxLength = 510]
UnicodeDataTypes.StringAnsi3 ---> [nullable varbinary] [MaxLength = 3]
UnicodeDataTypes.StringAnsi9000 ---> [nullable varbinary] [MaxLength = -1]
UnicodeDataTypes.StringDefault ---> [nullable varbinary] [MaxLength = -1]
UnicodeDataTypes.StringUnicode ---> [nullable varbinary] [MaxLength = -1]
UnicodeDataTypes.StringAnsi9000 ---> [nullable varbinary] [MaxLength = 255]
UnicodeDataTypes.StringDefault ---> [nullable varbinary] [MaxLength = 510]
UnicodeDataTypes.StringUnicode ---> [nullable varbinary] [MaxLength = 510]
";
Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);

@ -55,6 +55,7 @@ BuiltInDataTypes.PartitionId ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestBoolean ---> [varchar] [MaxLength = 1]
BuiltInDataTypes.TestByte ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestCharacter ---> [varchar] [MaxLength = 1]
BuiltInDataTypes.TestDateOnly ---> [varchar] [MaxLength = 10]
BuiltInDataTypes.TestDateTime ---> [varchar] [MaxLength = 48]
BuiltInDataTypes.TestDateTimeOffset ---> [varchar] [MaxLength = 48]
BuiltInDataTypes.TestDecimal ---> [varchar] [MaxLength = 64]
@ -64,6 +65,7 @@ BuiltInDataTypes.TestInt32 ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestInt64 ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestSignedByte ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestSingle ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestTimeOnly ---> [varchar] [MaxLength = 48]
BuiltInDataTypes.TestTimeSpan ---> [varchar] [MaxLength = 48]
BuiltInDataTypes.TestUnsignedInt16 ---> [varchar] [MaxLength = 64]
BuiltInDataTypes.TestUnsignedInt32 ---> [varchar] [MaxLength = 64]
@ -81,6 +83,7 @@ BuiltInDataTypesShadow.PartitionId ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestBoolean ---> [varchar] [MaxLength = 1]
BuiltInDataTypesShadow.TestByte ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestCharacter ---> [varchar] [MaxLength = 1]
BuiltInDataTypesShadow.TestDateOnly ---> [varchar] [MaxLength = 10]
BuiltInDataTypesShadow.TestDateTime ---> [varchar] [MaxLength = 48]
BuiltInDataTypesShadow.TestDateTimeOffset ---> [varchar] [MaxLength = 48]
BuiltInDataTypesShadow.TestDecimal ---> [varchar] [MaxLength = 64]
@ -90,6 +93,7 @@ BuiltInDataTypesShadow.TestInt32 ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestInt64 ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestSignedByte ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestSingle ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestTimeOnly ---> [varchar] [MaxLength = 48]
BuiltInDataTypesShadow.TestTimeSpan ---> [varchar] [MaxLength = 48]
BuiltInDataTypesShadow.TestUnsignedInt16 ---> [varchar] [MaxLength = 64]
BuiltInDataTypesShadow.TestUnsignedInt32 ---> [varchar] [MaxLength = 64]
@ -108,6 +112,7 @@ BuiltInNullableDataTypes.TestByteArray ---> [nullable varchar] [MaxLength = 255]
BuiltInNullableDataTypes.TestNullableBoolean ---> [nullable varchar] [MaxLength = 1]
BuiltInNullableDataTypes.TestNullableByte ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypes.TestNullableCharacter ---> [nullable varchar] [MaxLength = 1]
BuiltInNullableDataTypes.TestNullableDateOnly ---> [nullable varchar] [MaxLength = 10]
BuiltInNullableDataTypes.TestNullableDateTime ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypes.TestNullableDateTimeOffset ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypes.TestNullableDecimal ---> [nullable varchar] [MaxLength = 64]
@ -117,6 +122,7 @@ BuiltInNullableDataTypes.TestNullableInt32 ---> [nullable varchar] [MaxLength =
BuiltInNullableDataTypes.TestNullableInt64 ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypes.TestNullableSignedByte ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypes.TestNullableSingle ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypes.TestNullableTimeOnly ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypes.TestNullableTimeSpan ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypes.TestNullableUnsignedInt16 ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypes.TestNullableUnsignedInt32 ---> [nullable varchar] [MaxLength = 64]
@ -136,6 +142,7 @@ BuiltInNullableDataTypesShadow.TestByteArray ---> [nullable varchar] [MaxLength
BuiltInNullableDataTypesShadow.TestNullableBoolean ---> [nullable varchar] [MaxLength = 1]
BuiltInNullableDataTypesShadow.TestNullableByte ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypesShadow.TestNullableCharacter ---> [nullable varchar] [MaxLength = 1]
BuiltInNullableDataTypesShadow.TestNullableDateOnly ---> [nullable varchar] [MaxLength = 10]
BuiltInNullableDataTypesShadow.TestNullableDateTime ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypesShadow.TestNullableDateTimeOffset ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypesShadow.TestNullableDecimal ---> [nullable varchar] [MaxLength = 64]
@ -145,6 +152,7 @@ BuiltInNullableDataTypesShadow.TestNullableInt32 ---> [nullable varchar] [MaxLen
BuiltInNullableDataTypesShadow.TestNullableInt64 ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypesShadow.TestNullableSignedByte ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypesShadow.TestNullableSingle ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypesShadow.TestNullableTimeOnly ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypesShadow.TestNullableTimeSpan ---> [nullable varchar] [MaxLength = 48]
BuiltInNullableDataTypesShadow.TestNullableUnsignedInt16 ---> [nullable varchar] [MaxLength = 64]
BuiltInNullableDataTypesShadow.TestNullableUnsignedInt32 ---> [nullable varchar] [MaxLength = 64]
@ -159,6 +167,7 @@ MaxLengthDataTypes.ByteArray9000 ---> [nullable varchar] [MaxLength = 255]
MaxLengthDataTypes.Id ---> [varchar] [MaxLength = 64]
MaxLengthDataTypes.String3 ---> [nullable varchar] [MaxLength = 3]
MaxLengthDataTypes.String9000 ---> [nullable varchar] [MaxLength = 255]
MaxLengthDataTypes.StringUnbounded ---> [nullable varchar] [MaxLength = 255]
StringEnclosure.Id ---> [varchar] [MaxLength = 64]
StringEnclosure.Value ---> [nullable varchar] [MaxLength = 255]
StringForeignKeyDataType.Id ---> [varchar] [MaxLength = 64]

Loading…
Cancel
Save