File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ def delete_insert(deletes, inserts)
201201 ##
202202 # Applies the given changeset
203203 #
204- # If `#supports?(:transactions )` is `true`, this must apply the changeset
204+ # If `#supports?(:atomic_write )` is `true`, this must apply the changeset
205205 # atomically. Otherwise, it should offer an efficient implementation of a
206206 # combined delete/insert of the changeset.
207207 #
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ def supports?(feature)
150150 #
151151 # @see RDF::Mutable#delete_insert
152152 def delete_insert ( deletes , inserts )
153+ return super unless supports? ( :atomic_write )
154+
153155 transaction ( mutable : true ) do
154156 deletes . respond_to? ( :each_statement ) ? delete ( deletes ) : delete ( *deletes )
155157 inserts . respond_to? ( :each_statement ) ? insert ( inserts ) : insert ( *inserts )
@@ -291,7 +293,7 @@ def each_statement(&block)
291293 enum_statement
292294 end
293295 alias_method :each , :each_statement
294-
296+
295297 ##
296298 # @see Mutable#apply_changeset
297299 def apply_changeset ( changeset )
You can’t perform that action at this time.
0 commit comments