Skip to content

Commit

Permalink
Merge pull request #986 from wocommunity/improvement/sql-server-get-n…
Browse files Browse the repository at this point in the history
…ext-val-from-sequence

Support get next sequence value from SQL Server database
  • Loading branch information
darkv authored Jun 3, 2022
2 parents e16edf5 + 4155f8d commit 0cd2aa5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2626,6 +2626,10 @@ public String sqlForCreateIndex(String indexName, String tableName, ColumnIndex.
return "CREATE INDEX " + indexName + " ON " + tableName + "(" + columnNames.componentsJoinedByString(",") + ")";
}

@Override
protected String sqlForGetNextValFromSequencedNamed(String sequenceName) {
return "SELECT NEXT VALUE FOR " + sequenceName;
}
}

public static class NoSQLHelper extends ERXSQLHelper {
Expand Down

0 comments on commit 0cd2aa5

Please sign in to comment.