From 23a04ac50e3af4bcba9858c851796b9ef5c0d48d Mon Sep 17 00:00:00 2001 From: Ethan Donowitz Date: Wed, 13 Dec 2023 16:50:24 -0500 Subject: [PATCH] fix rebase --- lib/readyset.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/readyset.rb b/lib/readyset.rb index f5419ea..4f82c51 100644 --- a/lib/readyset.rb +++ b/lib/readyset.rb @@ -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