pg-hstore 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pg_hstore.rb +4 -2
- metadata +1 -1
data/lib/pg_hstore.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module PgHstore
|
2
2
|
SINGLE_QUOTE = "'"
|
3
3
|
DOUBLE_QUOTE = '"'
|
4
|
+
HASHROCKET = '=>'
|
5
|
+
COMMA = ','
|
4
6
|
|
5
7
|
QUOTED_LITERAL = /"[^"\\]*(?:\\.[^"\\]*)*"/
|
6
8
|
UNQUOTED_LITERAL = /[^\s=,][^\s=,\\]*(?:\\.[^\s=,\\]*|=[^,>])*/
|
@@ -37,8 +39,8 @@ module PgHstore
|
|
37
39
|
k = escape_single_quotes k
|
38
40
|
end
|
39
41
|
k = DOUBLE_QUOTE + k + DOUBLE_QUOTE
|
40
|
-
[k, v].join
|
41
|
-
end.join(
|
42
|
+
[k, v].join HASHROCKET
|
43
|
+
end.join(COMMA)
|
42
44
|
if for_parameter
|
43
45
|
memo
|
44
46
|
else
|