Changeset: d80576ecbcc7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d80576ecbcc7
Modified Files:
        clients/mapiclient/dump.c
        sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128
        sql/test/testdb-upgrade-chain/Tests/dump.stable.out
        sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128
        sql/test/testdb-upgrade/Tests/dump.stable.out
        sql/test/testdb/Tests/testdb-dump.stable.out
        sql/test/testdb/Tests/testdb-load.sql
Branch: Jul2017
Log Message:

Merge with Dec2016 branch.


diffs (86 lines):

diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -1141,7 +1141,9 @@ 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), "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;
diff --git a/sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128 
b/sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128
--- a/sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128
+++ b/sql/test/testdb-upgrade-chain-hge/Tests/dump.stable.out.int128
@@ -101215,7 +101215,7 @@ CREATE TABLE "testschema"."typestest" (
        "character10"    CHAR(10)
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 1000000 10000000000     1e+30   1e+20   1       
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
1995-07-15 07:30:00.000000      1995-07-15 07:30:00.00000       1995-07-15 
07:30:00.000000+00:00        1995-07-15 07:30:00.00000+00:00 07:30:00        
07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "x"     "varchar"       "0123456789"
+true   10      10000   1000000 1000000 10000000000     1e+30   1e+20   1       
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
"1995-07-15 07:30:00.000000"    "1995-07-15 07:30:00.00000"     "1995-07-15 
07:30:00.000000+00:00"      "1995-07-15 07:30:00.00000+00:00"       07:30:00    
    07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "x"     "varchar"       "0123456789"
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
diff --git a/sql/test/testdb-upgrade-chain/Tests/dump.stable.out 
b/sql/test/testdb-upgrade-chain/Tests/dump.stable.out
--- a/sql/test/testdb-upgrade-chain/Tests/dump.stable.out
+++ b/sql/test/testdb-upgrade-chain/Tests/dump.stable.out
@@ -101173,7 +101173,7 @@ CREATE TABLE "testschema"."typestest" (
        "character10"    CHAR(10)
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 1000000 10000000000     1e+30   1e+20   1       
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
1995-07-15 07:30:00.000000      1995-07-15 07:30:00.00000       1995-07-15 
07:30:00.000000+00:00        1995-07-15 07:30:00.00000+00:00 07:30:00        
07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "x"     "varchar"       "0123456789"
+true   10      10000   1000000 1000000 10000000000     1e+30   1e+20   1       
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
"1995-07-15 07:30:00.000000"    "1995-07-15 07:30:00.00000"     "1995-07-15 
07:30:00.000000+00:00"      "1995-07-15 07:30:00.00000+00:00"       07:30:00    
    07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "x"     "varchar"       "0123456789"
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
diff --git a/sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128 
b/sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128
--- a/sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128
+++ b/sql/test/testdb-upgrade-hge/Tests/dump.stable.out.int128
@@ -101180,7 +101180,7 @@ CREATE TABLE "testschema"."typestest" (
        "json"           JSON
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
1995-07-15 07:30:00.000000      1995-07-15 07:30:00.00000       1995-07-15 
07:30:00.000000+00:00        1995-07-15 07:30:00.00000+00:00 07:30:00        
07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
+true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
"1995-07-15 07:30:00.000000"    "1995-07-15 07:30:00.00000"     "1995-07-15 
07:30:00.000000+00:00"      "1995-07-15 07:30:00.00000+00:00"       07:30:00    
    07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
diff --git a/sql/test/testdb-upgrade/Tests/dump.stable.out 
b/sql/test/testdb-upgrade/Tests/dump.stable.out
--- a/sql/test/testdb-upgrade/Tests/dump.stable.out
+++ b/sql/test/testdb-upgrade/Tests/dump.stable.out
@@ -101175,7 +101175,7 @@ CREATE TABLE "testschema"."typestest" (
        "json"           JSON
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
1995-07-15 07:30:00.000000      1995-07-15 07:30:00.00000       1995-07-15 
07:30:00.000000+00:00        1995-07-15 07:30:00.00000+00:00 07:30:00        
07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
+true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
"1995-07-15 07:30:00.000000"    "1995-07-15 07:30:00.00000"     "1995-07-15 
07:30:00.000000+00:00"      "1995-07-15 07:30:00.00000+00:00"       07:30:00    
    07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
diff --git a/sql/test/testdb/Tests/testdb-dump.stable.out 
b/sql/test/testdb/Tests/testdb-dump.stable.out
--- a/sql/test/testdb/Tests/testdb-dump.stable.out
+++ b/sql/test/testdb/Tests/testdb-dump.stable.out
@@ -101174,7 +101174,7 @@ CREATE TABLE "testschema"."typestest" (
        "json"           JSON
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
1995-07-15 07:30:00.000000      1995-07-15 07:30:00.00000       1995-07-15 
07:30:00.000000+00:00        1995-07-15 07:30:00.00000+00:00 07:30:00        
07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
+true   10      10000   1000000 10000000000     1e+30   1e+20   1.000   
123456789       12345.678       3.1415  3.1415  3.1415  2009-04-15      24      
18      3       1728000.000     108000.000      120000.000      100000.000      
36000.000       6000.000        2000.000        600.000 100.000 10.000  
"1995-07-15 07:30:00.000000"    "1995-07-15 07:30:00.00000"     "1995-07-15 
07:30:00.000000+00:00"      "1995-07-15 07:30:00.00000+00:00"       07:30:00    
    07:30:00.00000  07:30:00+00:00  07:30:00.00000+00:00    123456  123456  
"123456"        "123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
diff --git a/sql/test/testdb/Tests/testdb-load.sql 
b/sql/test/testdb/Tests/testdb-load.sql
--- a/sql/test/testdb/Tests/testdb-load.sql
+++ b/sql/test/testdb/Tests/testdb-load.sql
@@ -101153,7 +101153,7 @@ CREATE TABLE "testschema"."typestest" (
        "json"           JSON
 );
 COPY 2 RECORDS INTO "testschema"."typestest" FROM stdin USING DELIMITERS 
'\t','\n','"';
-true   10      10000   1000000 10000000000     1e+30   1.00000002e+20  1       
123456789       12345.678       3.1415000000000002      3.1415  3.1415  
2009-04-15      24      18      3       1728000 108000  120000  100000  36000   
6000    2000    600     100     10      1995-07-15 07:30:00.000000      
1995-07-15 07:30:00.00000       1995-07-15 07:30:00.000000+00:00        
1995-07-15 07:30:00.00000+00:00 07:30:00        07:30:00.00000  07:30:00+00:00  
07:30:00.00000+00:00    123456  123456  "123456"        "123456"        "𐤀"     
"varchar"       "0123456789"    7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    
192.168.10.0/24 {"f1":{"f12":3},"f2":[2,3,4]}
+true   10      10000   1000000 10000000000     1e+30   1.00000002e+20  1       
123456789       12345.678       3.1415000000000002      3.1415  3.1415  
2009-04-15      24      18      3       1728000 108000  120000  100000  36000   
6000    2000    600     100     10      "1995-07-15 07:30:00.000000"    
"1995-07-15 07:30:00.00000"     "1995-07-15 07:30:00.000000+00:00"      
"1995-07-15 07:30:00.00000+00:00"       07:30:00        07:30:00.00000  
07:30:00+00:00  07:30:00.00000+00:00    123456  123456  "123456"        
"123456"        "𐤀"     "varchar"       "0123456789"    
7d95a9ce-aeb8-4881-9cf7-60b4d55f9e45    192.168.10.0/24 
{"f1":{"f12":3},"f2":[2,3,4]}
 NULL   NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    
NULL    NULL    NULL    NULL    NULL
 CREATE TABLE "testschema"."keytest1" (
        "key1" INTEGER       NOT NULL,
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to