Skip to content

Commit

Permalink
nhibernateGH-3530: Guid key's are not identity columns and are define…
Browse files Browse the repository at this point in the history
…d like all other columns.
  • Loading branch information
David Ellingsworth authored and David Ellingsworth committed May 15, 2024
1 parent c9a7c8a commit a863710
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/NHibernate.Test/NHSpecificTest/GH3530/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,9 @@ protected override void CreateSchema()
var table = GetQualifiedName(catalog, schema, "LocaleEntity");

sb.Append($"{Dialect.CreateTableString} {table} (");
sb.Append("Id ");

if (Dialect.HasDataTypeInIdentityColumn)
{
sb.Append($"{guidType}");
}
sb.Append(" ").Append(Dialect.GetIdentityColumnString(DbType.Guid)).Append(", ");

// Generate columns
sb.Append($"Id {guidType}, ");
sb.Append($"IntegerValue {stringType}, ");
sb.Append($"DateTimeValue {stringType}, ");
sb.Append($"DoubleValue {stringType}, ");
Expand Down

0 comments on commit a863710

Please sign in to comment.