This method is deprecated or moved on the latest stable version.
The last existing version (v1.2.6) is shown here.
next_sequence_value(sequence_name)
public
Returns the next sequence value from a sequence generator. Not generally
called directly; used by ActiveRecord to
get the next primary key value when inserting a new
database record (see #prefetch_primary_key?).
# File activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb, line 605
def next_sequence_value(sequence_name)
unique = select_value("SELECT UNIQUE FROM #{sequence_name}","Next Sequence Value")
# The test cases cannot handle a zero primary key
unique.zero? ? select_value("SELECT UNIQUE FROM #{sequence_name}","Next Sequence Value") : unique
end