Skip to content

Commit

Permalink
Potential fix for NH-3020 regarding sequences on Firebird.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarb committed Jan 18, 2012
1 parent c07c6c8 commit ab0b36b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NHibernate/Dialect/FirebirdDialect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ public override string AddColumnString
get { return "add"; }
}


public override string GetSelectSequenceNextValString(string sequenceName)
{
return string.Format("gen_id({0}, 1 )", sequenceName);
}

public override string GetSequenceNextValString(string sequenceName)
{
return string.Format("select gen_id({0}, 1 ) from RDB$DATABASE", sequenceName);
Expand Down

0 comments on commit ab0b36b

Please sign in to comment.