Changeset: 88c6c926a8df for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=88c6c926a8df
Modified Files:
        gdk/gdk_logger.c
        gdk/gdk_project.c
        monetdb5/mal/Tests/All
        sql/backends/monet5/rel_bin.c
        sql/backends/monet5/sql_upgrades.c
        sql/include/sql_catalog.h
        sql/server/sql_parser.y
        sql/storage/store.c
        sql/test/BugTracker-2009/Tests/copy_multiple_files.SF-2902320.stable.out
        
sql/test/BugTracker-2010/Tests/LIMIT_OFFSET_big-endian.Bug-2622.stable.out
        sql/test/BugTracker-2010/Tests/LIMIT_OFFSET_big-endian.Bug-2622.test
        sql/test/BugTracker-2017/Tests/caching_stats_bug.6374.stable.out
        sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.stable.out
        sql/test/BugTracker/Tests/jdbc_no_debug.SF-1739356.test
        sql/test/emptydb/Tests/check.stable.out
        sql/test/emptydb/Tests/check.stable.out.32bit
        sql/test/emptydb/Tests/check.stable.out.int128
        sql/test/mergetables/Tests/mergequery.stable.out
        sql/test/mergetables/Tests/part-elim.stable.out
        sql/test/miscellaneous/Tests/groupby_error.stable.out
        sql/test/miscellaneous/Tests/groupby_error.test
        sql/test/miscellaneous/Tests/groupby_prepare.stable.out
Branch: unlock
Log Message:

merged with default


diffs (truncated from 42545 to 300 lines):

diff --git a/clients/Tests/mclient-uri.SQL.bat 
b/clients/Tests/mclient-uri.SQL.bat
deleted file mode 100755
--- a/clients/Tests/mclient-uri.SQL.bat
+++ /dev/null
@@ -1,6 +0,0 @@
-@prompt # $t $g  
-@echo on
-
-@rem Windows doesn't do UNIX domain sockets, so only the one test here.
-
-mclient -d 
"mapi:monetdb://%HOST%:%MAPIPORT%/%TSTDB%?language=sql&user=monetdb" -f test -t 
none -E utf-8 -s "select 1"
diff --git a/clients/Tests/mclient-uri.SQL.py b/clients/Tests/mclient-uri.SQL.py
new file mode 100644
--- /dev/null
+++ b/clients/Tests/mclient-uri.SQL.py
@@ -0,0 +1,19 @@
+import os, sys
+from MonetDBtesting import process
+
+with process.client('sql', 
dbname='mapi:monetdb://{}:{}/{}?language=sql&user=monetdb'.format(os.getenv('HOST',
 'localhost'), os.getenv('MAPIPORT', 50000), os.getenv('TSTDB', 'demo')), 
host='', port='', format='csv', echo=False, stdin=process.PIPE, 
stdout=process.PIPE, stderr=process.PIPE) as c:
+    out, err = c.communicate('select 1;\n')
+
+if out != '1\n':
+    print(out)
+if err:
+    print(err, file=sys.stderr)
+
+if os.name != 'nt':
+    with process.client('sql', 
dbname='mapi:monetdb://{}/.s.monetdb.{}?database={}&language=sql&user=monetdb'.format(os.getenv('MAPIHOST',
 '/tmp'), os.getenv('MAPIPORT', 50000), os.getenv('TSTDB', 'demo')), host='', 
port='', format='csv', echo=False, stdin=process.PIPE, stdout=process.PIPE, 
stderr=process.PIPE) as c:
+        out, err = c.communicate('select 1;\n')
+
+    if out != '1\n':
+        print(out)
+    if err:
+        print(err, file=sys.stderr)
diff --git a/clients/Tests/mclient-uri.SQL.sh b/clients/Tests/mclient-uri.SQL.sh
deleted file mode 100755
--- a/clients/Tests/mclient-uri.SQL.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# test the URI parsing capabilities of the MAPI library
-
-mclient -d "mapi:monetdb://$HOST:$MAPIPORT/$TSTDB?language=sql&user=monetdb" 
-f csv -t none -E utf-8 -s 'select 1' | grep -v '^1$'
-if [ $? -eq 2 ]; then
-       return 2;
-fi
-
-mclient -d 
"mapi:monetdb://$MAPIHOST/.s.monetdb.$MAPIPORT?database=$TSTDB&language=sql&user=monetdb"
 -f csv -t none -E utf-8 -s 'select 1' | grep -v '^1$'
-if [ $? -eq 2 ]; then
-       return 2;
-fi
diff --git a/clients/Tests/mclient-uri.stable.err 
b/clients/Tests/mclient-uri.stable.err
deleted file mode 100644
--- a/clients/Tests/mclient-uri.stable.err
+++ /dev/null
@@ -1,44 +0,0 @@
-stderr of test 'mclient-uri` in directory 'clients` itself:
-
-
-# 10:30:50 >  
-# 10:30:50 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36840" "--set" 
"mapi_usock=/var/tmp/mtest-2769/.s.monetdb.36840" "--set" "monet_prompt=" 
"--forcemito" "--dbpath=/ufs/sjoerd/@Monet-stable/var/MonetDB/mTests_clients"
-# 10:30:50 >  
-
-# builtin opt  gdk_dbpath = /ufs/sjoerd/@Monet-stable/var/monetdb5/dbfarm/demo
-# builtin opt  gdk_debug = 0
-# builtin opt  gdk_vmtrim = no
-# builtin opt  monet_prompt = >
-# builtin opt  monet_daemon = no
-# builtin opt  mapi_port = 50000
-# builtin opt  mapi_open = false
-# builtin opt  mapi_autosense = false
-# builtin opt  sql_optimizer = default_pipe
-# builtin opt  sql_debug = 0
-# cmdline opt  gdk_nr_threads = 0
-# cmdline opt  mapi_open = true
-# cmdline opt  mapi_port = 36840
-# cmdline opt  mapi_usock = /var/tmp/mtest-2769/.s.monetdb.36840
-# cmdline opt  monet_prompt = 
-# cmdline opt  gdk_dbpath = 
/ufs/sjoerd/@Monet-stable/var/MonetDB/mTests_clients
-# cmdline opt  gdk_debug = 536870922
-
-# 10:30:51 >  
-# 10:30:51 >  "./mclient-uri.SQL.sh" "mclient-uri"
-# 10:30:51 >  
-
-
-# 10:30:51 >  
-# 10:30:51 >  mclient -d 
mapi:monetdb://madrid:36840/mTests_clients?language=sql&user=monetdb -f test -E 
utf-8 -s select 1
-# 10:30:51 >  
-
-
-# 10:30:51 >  
-# 10:30:51 >  mclient -d 
mapi:monetdb:///var/tmp/mtest-2769/.s.monetdb.36840?database=mTests_clients&language=sql&user=monetdb
 -f test -E utf-8 -s select 1
-# 10:30:51 >  
-
-
-# 10:30:51 >  
-# 10:30:51 >  "Done."
-# 10:30:51 >  
-
diff --git a/clients/Tests/mclient-uri.stable.out 
b/clients/Tests/mclient-uri.stable.out
deleted file mode 100644
--- a/clients/Tests/mclient-uri.stable.out
+++ /dev/null
@@ -1,50 +0,0 @@
-stdout of test 'mclient-uri` in directory 'clients` itself:
-
-
-# 10:30:50 >  
-# 10:30:50 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36840" "--set" 
"mapi_usock=/var/tmp/mtest-2769/.s.monetdb.36840" "--set" "monet_prompt=" 
"--forcemito" "--dbpath=/ufs/sjoerd/@Monet-stable/var/MonetDB/mTests_clients"
-# 10:30:50 >  
-
-# MonetDB 5 server v11.25.22 (hg id: 7b4a32dfbcc5+)
-# This is an unreleased version
-# Serving database 'mTests_clients', using 8 threads
-# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers
-# Found 15.589 GiB available main-memory.
-# Copyright (c) 1993-July 2008 CWI.
-# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved
-# Visit http://www.monetdb.org/ for further information
-# Listening for connection requests on mapi:monetdb://madrid.da.cwi.nl:36840/
-# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-2769/.s.monetdb.36840
-# MonetDB/GIS module loaded
-# MonetDB/SQL module loaded
-
-
-# 10:30:51 >  
-# 10:30:51 >  "./mclient-uri.SQL.sh" "mclient-uri"
-# 10:30:51 >  
-
-
-# 13:05:14 >  
-# 13:05:14 >  mclient -d 
mapi:monetdb://xps13:35757/mTests_clients?language=sql&user=monetdb -f test -t 
none -E utf-8 -s select 1
-# 13:05:14 >  
-
-% .%2 # table_name
-% %2 # name
-% tinyint # type
-% 1 # length
-[ 1    ]
-
-# 10:30:51 >  
-# 10:30:51 >  mclient -d 
mapi:monetdb:///var/tmp/mtest-2769/.s.monetdb.36840?database=mTests_clients&language=sql&user=monetdb
 -f test -E utf-8 -s select 1
-# 10:30:51 >  
-
-% .%2 # table_name
-% %2 # name
-% tinyint # type
-% 1 # length
-[ 1    ]
-
-# 10:30:51 >  
-# 10:30:51 >  "Done."
-# 10:30:51 >  
-
diff --git a/clients/Tests/mclient-uri.stable.out.Windows 
b/clients/Tests/mclient-uri.stable.out.Windows
deleted file mode 100644
--- a/clients/Tests/mclient-uri.stable.out.Windows
+++ /dev/null
@@ -1,36 +0,0 @@
-stdout of test 'mclient-uri` in directory 'clients` itself:
-
-
-# 10:30:50 >  
-# 10:30:50 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=36840" "--set" 
"mapi_usock=/var/tmp/mtest-2769/.s.monetdb.36840" "--set" "monet_prompt=" 
"--forcemito" "--dbpath=/ufs/sjoerd/@Monet-stable/var/MonetDB/mTests_clients"
-# 10:30:50 >  
-
-# MonetDB 5 server v11.25.22 (hg id: 7b4a32dfbcc5+)
-# This is an unreleased version
-# Serving database 'mTests_clients', using 8 threads
-# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers
-# Found 15.589 GiB available main-memory.
-# Copyright (c) 1993-July 2008 CWI.
-# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved
-# Visit http://www.monetdb.org/ for further information
-# Listening for connection requests on mapi:monetdb://madrid.da.cwi.nl:36840/
-# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-2769/.s.monetdb.36840
-# MonetDB/GIS module loaded
-# MonetDB/SQL module loaded
-
-
-
-# 13:05:14 >  
-# 13:05:14 >  mclient -d 
mapi:monetdb://xps13:35757/mTests_clients?language=sql&user=monetdb -f test -t 
none -E utf-8 -s select 1
-# 13:05:14 >  
-
-% .%2 # table_name
-% %2 # name
-% tinyint # type
-% 1 # length
-[ 1    ]
-
-# 10:30:51 >  
-# 10:30:51 >  "Done."
-# 10:30:51 >  
-
diff --git a/clients/odbc/samples/testgetinfo.c 
b/clients/odbc/samples/testgetinfo.c
--- a/clients/odbc/samples/testgetinfo.c
+++ b/clients/odbc/samples/testgetinfo.c
@@ -79,7 +79,7 @@ const struct {
        enum {
                STRING,
                INTEGER,
-               SHORT,
+               SHORTINT,
        } type;
        char *name;
        union {
@@ -161,7 +161,7 @@ const struct {
        {
                .info = SQL_CATALOG_LOCATION,
                .name = "SQL_CATALOG_LOCATION",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = 0,
        },
        {
@@ -203,7 +203,7 @@ const struct {
        {
                .info = SQL_CONCAT_NULL_BEHAVIOR,
                .name = "SQL_CONCAT_NULL_BEHAVIOR",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_CB_NULL,
        },
        {
@@ -341,7 +341,7 @@ const struct {
        {
                .info = SQL_CORRELATION_NAME,
                .name = "SQL_CORRELATION_NAME",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_CN_ANY,
        },
        {
@@ -395,13 +395,13 @@ const struct {
        {
                .info = SQL_CURSOR_COMMIT_BEHAVIOR,
                .name = "SQL_CURSOR_COMMIT_BEHAVIOR",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_CB_DELETE,
        },
        {
                .info = SQL_CURSOR_ROLLBACK_BEHAVIOR,
                .name = "SQL_CURSOR_ROLLBACK_BEHAVIOR",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_CB_DELETE,
        },
        {
@@ -565,7 +565,7 @@ const struct {
        {
                .info = SQL_FILE_USAGE,
                .name = "SQL_FILE_USAGE",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_FILE_NOT_SUPPORTED,
        },
        {
@@ -589,13 +589,13 @@ const struct {
        {
                .info = SQL_GROUP_BY,
                .name = "SQL_GROUP_BY",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_GB_NO_RELATION,
        },
        {
                .info = SQL_IDENTIFIER_CASE,
                .name = "SQL_IDENTIFIER_CASE",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = SQL_IC_LOWER,
        },
        {
@@ -667,7 +667,7 @@ const struct {
        {
                .info = SQL_MAX_CATALOG_NAME_LEN,
                .name = "SQL_MAX_CATALOG_NAME_LEN",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = 0,
        },
        {
@@ -679,55 +679,55 @@ const struct {
        {
                .info = SQL_MAX_COLUMN_NAME_LEN,
                .name = "SQL_MAX_COLUMN_NAME_LEN",
-               .type = SHORT,
+               .type = SHORTINT,
                .s = 1024,
        },
        {
                .info = SQL_MAX_COLUMNS_IN_GROUP_BY,
                .name = "SQL_MAX_COLUMNS_IN_GROUP_BY",
-               .type = SHORT,
+               .type = SHORTINT,
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to