pg_json 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pg_json +2 -1
- metadata +1 -1
data/bin/pg_json
CHANGED
@@ -80,7 +80,8 @@ simple :text do
|
|
80
80
|
"'\"'||replace(data::text,'\"','\\\"')||'\"'"
|
81
81
|
end
|
82
82
|
simple :date do
|
83
|
-
"'\"'||to_char(data, 'YYYY-MM-DD')::text||'\"'"
|
83
|
+
# "'\"'||to_char(data, 'YYYY-MM-DD')::text||'\"'"
|
84
|
+
"'{\"__type__\":\"date\"',\"value\":\"'||to_char(data, 'YYYY-MM-DD')::text||'\"'}'"
|
84
85
|
end
|
85
86
|
simple :time do
|
86
87
|
"'\"'||to_char(data, 'HH24:MI:SS')::text||'\"'"
|