Skip to content

Commit

Permalink
fix for function creation in structure.sql (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-dumit authored Oct 8, 2024
1 parent ddfa259 commit 4cebc69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/clickhouse-activerecord/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def structure_load(*args)
next
elsif sql =~ /^INSERT INTO/
connection.do_execute(sql, nil, format: nil)
elsif sql =~ /^CREATE .*?FUNCTION/
connection.do_execute(sql, nil, format: nil)
else
connection.execute(sql)
end
Expand Down

0 comments on commit 4cebc69

Please sign in to comment.