Skip to content

Commit

Permalink
Stringify name
Browse files Browse the repository at this point in the history
  • Loading branch information
calebhearth committed Nov 20, 2024
1 parent 4280a0d commit 51af30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scenic/adapters/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def refresh_materialized_view(name, concurrently: false, cascade: false)
def populated?(name)
raise_unless_materialized_views_supported

schemaless_name = name.split(".").last
schemaless_name = name.to_s.split(".").last

sql = "SELECT relispopulated FROM pg_class WHERE relname = '#{schemaless_name}'"
relations = execute(sql)
Expand Down

0 comments on commit 51af30c

Please sign in to comment.