superstore 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/superstore/adapters/cassandra_adapter.rb +1 -1
- data/lib/superstore/connection.rb +0 -17
- data/superstore.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8dd64dae5a9e5d00aa565156eb4ce532731ebf
|
4
|
+
data.tar.gz: 57369fd46e265c2501014c163d3581c0a52c2d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5827c43a71f5e59204b446c2fb012d159b60a29ccfffe770665914be61f65ffb48300bfff7423049092033128b6e6b6c6a96b1282116b62ec1202334c98d6f9a
|
7
|
+
data.tar.gz: 8ad8561610b1c3f21c08e59d167a1b28cbf42d6f9cb366e9f5d2e6fe2c7932f5f5cc40fe387982f7c0ef2f12c692c71b4f4349e2ac4648bec7792378d2577599
|
@@ -169,7 +169,7 @@ module Superstore
|
|
169
169
|
private
|
170
170
|
|
171
171
|
def sanitize(statement, *bind_vars)
|
172
|
-
CassandraCQL::Statement.sanitize(statement, bind_vars)
|
172
|
+
CassandraCQL::Statement.sanitize(statement, bind_vars)
|
173
173
|
end
|
174
174
|
|
175
175
|
def quote_columns(column_names)
|
@@ -1,20 +1,3 @@
|
|
1
|
-
module CassandraCQL
|
2
|
-
class Statement
|
3
|
-
def self.sanitize(statement, bind_vars=[])
|
4
|
-
return statement if bind_vars.empty?
|
5
|
-
|
6
|
-
bind_vars = bind_vars.dup
|
7
|
-
expected_bind_vars = statement.count("?")
|
8
|
-
|
9
|
-
raise Error::InvalidBindVariable, "Wrong number of bound variables (statement expected #{expected_bind_vars}, was #{bind_vars.size})" if expected_bind_vars != bind_vars.size
|
10
|
-
|
11
|
-
statement.gsub(/\?/) do
|
12
|
-
quote(cast_to_cql(bind_vars.shift))
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
1
|
module Superstore
|
19
2
|
module Connection
|
20
3
|
extend ActiveSupport::Concern
|
data/superstore.gemspec
CHANGED