Changeset: 25d60d7cf3f0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=25d60d7cf3f0
Modified Files:
        clients/mapiclient/dump.c
Branch: Jul2015
Log Message:

When dumping JSON values, don't quote the value.
When reading back the dump, the JSON parser can't cope with the quoted
values.


diffs (13 lines):

diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -1147,8 +1147,7 @@ dump_table_data(Mapi mid, char *schema, 
        for (i = 0; i < cnt; i++) {
                string[i] = (strcmp(mapi_get_type(hdl, i), "char") == 0 ||
                             strcmp(mapi_get_type(hdl, i), "varchar") == 0 ||
-                            strcmp(mapi_get_type(hdl, i), "clob") == 0 ||
-                            strcmp(mapi_get_type(hdl, i), "json") == 0);
+                            strcmp(mapi_get_type(hdl, i), "clob") == 0);
        }
        while (mapi_fetch_row(hdl)) {
                char *s;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to