Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ethowitz committed Dec 13, 2023
1 parent 3b9a75e commit 23a04ac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/readyset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@ def self.create_cache!(id: nil, sql: nil, name: nil, always: false)
from = (id || sql)

if always && name
Readyset.raw_query('CREATE CACHE ALWAYS ? FROM ' + suffix, name, from)
raw_query('CREATE CACHE ALWAYS ? FROM ' + suffix, name, from)
elsif always
Readyset.raw_query('CREATE CACHE ALWAYS FROM ' + suffix, from)
raw_query('CREATE CACHE ALWAYS FROM ' + suffix, from)
elsif name
Readyset.raw_query('CREATE CACHE ? FROM ' + suffix, name, from)
raw_query('CREATE CACHE ? FROM ' + suffix, name, from)
else
Readyset.raw_query('CREATE CACHE FROM ' + suffix, from)
raw_query('CREATE CACHE FROM ' + suffix, from)
end

raw_query(query, *params)

nil
end

Expand Down

0 comments on commit 23a04ac

Please sign in to comment.