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

Properly quote time stamps when dumping db

This fixes bug 6295


diffs (16 lines):

diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -1219,8 +1219,10 @@ dump_table_data(Mapi mid, char *schema, 
        string = malloc(sizeof(unsigned char) * cnt);
        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), 
"varchar") == 0 ||
+                                        strcmp(mapi_get_type(hdl, i), "clob") 
== 0 ||
+                                        strcmp(mapi_get_type(hdl, i), 
"timestamp") == 0 ||
+                                        strcmp(mapi_get_type(hdl, i), 
"timestamptz") == 0);
        }
        while (mapi_fetch_row(hdl)) {
                char *s;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to