Skip to content

Commit 49b998d

Browse files
Reduce breaking changes due to Ingres9 sequence support
1 parent 690e96f commit 49b998d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/NHibernate/Dialect/Ingres9Dialect.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using NHibernate.Id;
12
using NHibernate.SqlCommand;
23

34
namespace NHibernate.Dialect
@@ -40,6 +41,16 @@ public override bool SupportsLimitOffset
4041
/// <inheritdoc />
4142
public override string QuerySequencesString => "select seq_name from iisequences";
4243

44+
/// <inheritdoc />
45+
// 6.0 TODO: remove override for having default behavior when sequences are supported.
46+
// It has been put for minimizing breaking changes due to supporting sequences in 5.1.
47+
public override System.Type IdentityStyleIdentifierGeneratorClass => typeof(TriggerIdentityGenerator);
48+
49+
/// <inheritdoc />
50+
// 6.0 TODO: remove override for having default behavior when sequences are supported.
51+
// It has been put for minimizing breaking changes due to supporting sequences in 5.1.
52+
public override System.Type NativeIdentifierGeneratorClass => typeof(TableHiLoGenerator);
53+
4354
/// <summary>
4455
/// Attempts to add a <c>LIMIT</c> clause to the given SQL <c>SELECT</c>.
4556
/// Expects any database-specific offset and limit adjustments to have already been performed (ex. UseMaxForLimit, OffsetStartsAtOne).

0 commit comments

Comments
 (0)