File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ def discard!
449449 # when inserting a new database record (see #prefetch_primary_key?).
450450 def next_sequence_value ( sequence_name )
451451 # if sequence_name is set to :autogenerated then it means that primary key will be populated by trigger
452- raise ArgumentError "Trigger based primary key is not supported" if sequence_name == AUTOGENERATED_SEQUENCE_NAME
452+ raise ArgumentError . new "Trigger based primary key is not supported" if sequence_name == AUTOGENERATED_SEQUENCE_NAME
453453 # call directly connection method to avoid prepared statement which causes fetching of next sequence value twice
454454 select_value ( <<~SQL . squish , "next sequence value" )
455455 SELECT #{ quote_table_name ( sequence_name ) } .NEXTVAL FROM dual
You can’t perform that action at this time.
0 commit comments