Skip to content

Commit

Permalink
Use parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
teoljungberg committed May 25, 2024
1 parent e89d594 commit 14f2a29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/fx/adapters/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def triggers
#
# @return [void]
def create_function(sql_definition)
execute sql_definition
execute(sql_definition)
end

# Creates a trigger in the database.
Expand All @@ -81,7 +81,7 @@ def create_function(sql_definition)
#
# @return [void]
def create_trigger(sql_definition)
execute sql_definition
execute(sql_definition)
end

# Updates a function in the database.
Expand Down Expand Up @@ -126,9 +126,9 @@ def update_trigger(name, on:, sql_definition:)
# @return [void]
def drop_function(name)
if support_drop_function_without_args
execute "DROP FUNCTION #{name};"
execute("DROP FUNCTION #{name};")
else
execute "DROP FUNCTION #{name}();"
execute("DROP FUNCTION #{name}();")
end
end

Expand All @@ -142,7 +142,7 @@ def drop_function(name)
#
# @return [void]
def drop_trigger(name, on:)
execute "DROP TRIGGER #{name} ON #{on};"
execute("DROP TRIGGER #{name} ON #{on};")
end

private
Expand Down

0 comments on commit 14f2a29

Please sign in to comment.