fix double escape in gbq
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
module GoogleBigQuery
|
module GoogleBigQuery
|
||||||
class PostVersion < Base
|
class PostVersion < Base
|
||||||
def find_removed(tag, limit = 1_000)
|
def find_removed(tag, limit = 1_000)
|
||||||
tag = escape(tag)
|
|
||||||
limit = limit.to_i
|
limit = limit.to_i
|
||||||
query("select id, post_id, updated_at, updater_id, updater_ip_addr, tags, added_tags, removed_tags, parent_id, rating, source from [#{data_set}.post_versions] where #{remove_tag_condition(tag)} order by updated_at desc limit #{limit}")
|
query("select id, post_id, updated_at, updater_id, updater_ip_addr, tags, added_tags, removed_tags, parent_id, rating, source from [#{data_set}.post_versions] where #{remove_tag_condition(tag)} order by updated_at desc limit #{limit}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_added(tag, limit = 1_000)
|
def find_added(tag, limit = 1_000)
|
||||||
tag = escape(tag)
|
|
||||||
limit = limit.to_i
|
limit = limit.to_i
|
||||||
query("select id, post_id, updated_at, updater_id, updater_ip_addr, tags, added_tags, removed_tags, parent_id, rating, source from [#{data_set}.post_versions] where #{add_tag_condition(tag)} order by updated_at desc limit #{limit}")
|
query("select id, post_id, updated_at, updater_id, updater_ip_addr, tags, added_tags, removed_tags, parent_id, rating, source from [#{data_set}.post_versions] where #{add_tag_condition(tag)} order by updated_at desc limit #{limit}")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user