pg_json 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/pg_json +3 -3
  2. metadata +1 -1
data/bin/pg_json CHANGED
@@ -23,13 +23,13 @@ end
23
23
  simple :integer
24
24
  simple :float
25
25
  simple :text do
26
- "'"'||data::text||'"'"
26
+ "'\"'||data::text||'\"'"
27
27
  end
28
28
  simple :date do
29
- "'"'||to_char(data, 'YYYY-MM-DD')::text||'"'"
29
+ "'\"'||to_char(data, 'YYYY-MM-DD')::text||'\"'"
30
30
  end
31
31
  simple :time do
32
- "'"'||to_char(data, 'HH24:MI:SS')::text||'"'"
32
+ "'\"'||to_char(data, 'HH24:MI:SS')::text||'\"'"
33
33
  end
34
34
 
35
35
  # def unquoted(type)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: