Changeset: f481de243286 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f481de243286
Added Files:
sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.SQL.py
sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
Removed Files:
sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.test
Modified Files:
sql/test/BugTracker-2019/Tests/All
sql/test/prepare/Tests/All
Branch: mtest
Log Message:
moved prepared-select-with-error-causes-hang.Bug-6761
diffs (281 lines):
diff --git a/sql/test/BugTracker-2019/Tests/All
b/sql/test/BugTracker-2019/Tests/All
--- a/sql/test/BugTracker-2019/Tests/All
+++ b/sql/test/BugTracker-2019/Tests/All
@@ -35,7 +35,6 @@ merge-table-limit.Bug-6756
double-free.Bug-6757
HAVE_PYMONETDB&HAVE_LIBPY3?python-loader-string.Bug-6759
select-char.Bug-6761
-prepared-select-with-error-causes-hang.Bug-6761
HAVE_PYMONETDB?grant-select-column.Bug-6765
next-get-value-bulk.Bug-6766
filter_json_null.Bug-6773
diff --git
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
deleted file mode 100644
---
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
+++ /dev/null
@@ -1,14 +0,0 @@
-drop table if exists abacus;
-
-create table abacus ( "'Zeitachse'" date,"'Abo_ID'" int,"'description'"
varchar(256),"'Klassierungs-Typ'" clob,"'KlassierungApplikation'" clob,"'EP
Netto'" decimal,"'Nettoumsatz'" decimal,"'validfrom'" date,"'validuntil'"
date,"'Abo_aufgeschaltet'" int,"'Abo_deaktiviert'" int,"'Differenz'"
decimal,"'User_ID'" int,"'UserName'" varchar(256),"'client'"
varchar(256),"'Installations_ID'" int,"'InstallationsName'"
varchar(256),"'Installationsprovider_ID'" int,"'InstallationsproviderName'"
varchar(256),"'INR'" bigint,"'NAME'" varchar(256),"'PLZ'" varchar(256),"'ORT'"
varchar(256),"'STAAT'" varchar(256),"'Reseller_ID'" int,"'ResellerName'"
varchar(256),"'ET_ABO'" clob,"'UserName_1'" varchar(256),"'Anzahl_Abos'"
decimal,"'Anzahl_User'" decimal,"'Jahr'" decimal,"'Monat'"
decimal,"'Jahr_Monat'" clob,"'IFJ'" clob,"'RECNUM$'"
int,"'InlineCalc_Year_Zeitachse'" int);
-
-insert into abacus values
('2019-10-30',2239,'description','Klassierungs-Typ','Klassierung-Applikation',73.28,68.29,'2018-01-01','2018-12-01',563,63,56.3,852,'UserName','client',134,'InstallationsName',892,'InstallationsproviderName',9348,'NAME','PLZ','ORT','STAAT',934,'ResellerName','ET_ABO','UserName_1',849.2739,1742.718,395.824,39.824,'Jahr_Monat','IFJ',395824,3789);
-
-SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
-
-PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
-
-exec **(); -- hang in Apr2019-SP1, error in Nov2019
-
-drop table if exists abacus;
-
diff --git
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
deleted file mode 100644
---
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
+++ /dev/null
@@ -1,31 +0,0 @@
-stderr of test 'prepared-select-with-error-causes-hang.Bug-6761` in directory
'sql/test/BugTracker-2019` itself:
-
-# 18:47:57 >
-# 18:47:57 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"mapi_open=true" "--set" "mapi_port=33005" "--set"
"mapi_usock=/var/tmp/mtest-32072/.s.monetdb.33005" "--set" "monet_prompt="
"--forcemito"
"--dbpath=/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019"
"--set" "embedded_c=true"
-# 18:47:57 >
-
-# builtin opt gdk_dbpath =
/home/dinther/dev/dev/INSTALL/var/monetdb5/dbfarm/demo
-# 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 = 33005
-# cmdline opt mapi_usock = /var/tmp/mtest-32072/.s.monetdb.33005
-# cmdline opt monet_prompt =
-# cmdline opt gdk_dbpath =
/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019
-# cmdline opt embedded_c = true
-
-# 18:47:58 >
-# 18:47:58 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e"
"--host=/var/tmp/mtest-32072" "--port=33005"
-# 18:47:58 >
-
-
-# 18:48:59 >
-# 18:48:59 > "Done."
-# 18:48:59 >
-
diff --git
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
deleted file mode 100644
---
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
+++ /dev/null
@@ -1,50 +0,0 @@
-stdout of test 'prepared-select-with-error-causes-hang.Bug-6761` in directory
'sql/test/BugTracker-2019` itself:
-
-
-# 18:47:57 >
-# 18:47:57 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"mapi_open=true" "--set" "mapi_port=33005" "--set"
"mapi_usock=/var/tmp/mtest-32072/.s.monetdb.33005" "--set" "monet_prompt="
"--forcemito"
"--dbpath=/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019"
"--set" "embedded_c=true"
-# 18:47:57 >
-
-# MonetDB 5 server v11.33.11 (Apr2019-SP1)
-# Serving database 'mTests_sql_test_BugTracker-2019', using 8 threads
-# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers
-# Found 31.243 GiB available main-memory.
-# Copyright (c) 1993 - July 2008 CWI.
-# Copyright (c) August 2008 - 2020 MonetDB B.V., all rights reserved
-# Visit https://www.monetdb.org/ for further information
-# Listening for connection requests on
mapi:monetdb://localhost.localdomain:33005/
-# Listening for UNIX domain connection requests on
mapi:monetdb:///var/tmp/mtest-32072/.s.monetdb.33005
-# MonetDB/GIS module loaded
-# MonetDB/SQL module loaded
-
-# 20:24:37 >
-# 20:24:37 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e"
"--host=/var/tmp/mtest-9798" "--port=31528"
-# 20:24:37 >
-
-#drop table if exists abacus;
-#create table abacus ( "'Zeitachse'" date,"'Abo_ID'" int,"'description'"
varchar(256),"'Klassierungs-Typ'" clob,"'KlassierungApplikation'" clob,"'EP
Netto'" decimal,"'Nettoumsatz'" decimal,"'validfrom'" date,"'validuntil'"
date,"'Abo_aufgeschaltet'" int,"'Abo_deaktiviert'" int,"'Differenz'"
decimal,"'User_ID'" int,"'UserName'" varchar(256),"'client'"
varchar(256),"'Installations_ID'" int,"'InstallationsName'"
varchar(256),"'Installationsprovider_ID'" int,"'InstallationsproviderName'"
varchar(256),"'INR'" bigint,"'NAME'" varchar(256),"'PLZ'" varchar(256),"'ORT'"
varchar(256),"'STAAT'" varchar(256),"'Reseller_ID'" int,"'ResellerName'"
varchar(256),"'ET_ABO'" clob,"'UserName_1'" varchar(256),"'Anzahl_Abos'"
decimal,"'Anzahl_User'" decimal,"'Jahr'" decimal,"'Monat'"
decimal,"'Jahr_Monat'" clob,"'IFJ'" clob,"'RECNUM$'"
int,"'InlineCalc_Year_Zeitachse'" int);
-#insert into abacus values
('2019-10-30',2239,'description','Klassierungs-Typ','Klassierung-Applikation',73.28,68.29,'2018-01-01','2018-12-01',563,63,56.3,852,'UserName','client',134,'InstallationsName',892,'InstallationsproviderName',9348,'NAME','PLZ','ORT','STAAT',934,'ResellerName','ET_ABO','UserName_1',849.2739,1742.718,395.824,39.824,'Jahr_Monat','IFJ',395824,3789);
-[ 1 ]
-#SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
-% sys.abacus # table_name
-% 'ResellerName' # name
-% varchar # type
-% 0 # length
-#PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
-#PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
-% .prepare, .prepare, .prepare, .prepare, .prepare,
.prepare # table_name
-% type, digits, scale, schema, table, column # name
-% varchar, int, int, str, str, str # type
-% 7, 3, 1, 0, 6, 14 # length
-[ "varchar", 256, 0, "", "abacus", "'ResellerName'"
]
-#exec 11(); -- hang in Apr2019-SP1, error in Nov2019
-% sys.abacus # table_name
-% 'ResellerName' # name
-% varchar # type
-% 0 # length
-#drop table if exists abacus;
-
-# 18:48:59 >
-# 18:48:59 > "Done."
-# 18:48:59 >
-
diff --git
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.test
b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.test
deleted file mode 100644
---
a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Bug-6761.test
+++ /dev/null
@@ -1,23 +0,0 @@
-statement ok
-drop table if exists abacus
-
-statement ok
-create table abacus ( "'Zeitachse'" date,"'Abo_ID'" int,"'description'"
varchar(256),"'Klassierungs-Typ'" clob,"'KlassierungApplikation'" clob,"'EP
Netto'" decimal,"'Nettoumsatz'" decimal,"'validfrom'" date,"'validuntil'"
date,"'Abo_aufgeschaltet'" int,"'Abo_deaktiviert'" int,"'Differenz'"
decimal,"'User_ID'" int,"'UserName'" varchar(256),"'client'"
varchar(256),"'Installations_ID'" int,"'InstallationsName'"
varchar(256),"'Installationsprovider_ID'" int,"'InstallationsproviderName'"
varchar(256),"'INR'" bigint,"'NAME'" varchar(256),"'PLZ'" varchar(256),"'ORT'"
varchar(256),"'STAAT'" varchar(256),"'Reseller_ID'" int,"'ResellerName'"
varchar(256),"'ET_ABO'" clob,"'UserName_1'" varchar(256),"'Anzahl_Abos'"
decimal,"'Anzahl_User'" decimal,"'Jahr'" decimal,"'Monat'"
decimal,"'Jahr_Monat'" clob,"'IFJ'" clob,"'RECNUM$'"
int,"'InlineCalc_Year_Zeitachse'" int)
-
-statement ok
-insert into abacus values
('2019-10-30',2239,'description','Klassierungs-Typ','Klassierung-Applikation',73.28,68.29,'2018-01-01','2018-12-01',563,63,56.3,852,'UserName','client',134,'InstallationsName',892,'InstallationsproviderName',9348,'NAME','PLZ','ORT','STAAT',934,'ResellerName','ET_ABO','UserName_1',849.2739,1742.718,395.824,39.824,'Jahr_Monat','IFJ',395824,3789)
-
-query T rowsort
-SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0
-----
-
-statement ok
-PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0
-
-statement ok
-exec **()
-
-statement ok
-drop table if exists abacus
-
-
diff --git a/sql/test/prepare/Tests/All b/sql/test/prepare/Tests/All
--- a/sql/test/prepare/Tests/All
+++ b/sql/test/prepare/Tests/All
@@ -9,3 +9,5 @@ round-or-truncate.Bug-6193
prepared-statement-with-udf.Bug-6650
prepared-merge-statement.Bug-6706
prepare-types.Bug-6724
+prepared-select-with-error-causes-hang.Bug-6761
+
diff --git
a/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.SQL.py
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.SQL.py
new file mode 100644
--- /dev/null
+++
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.SQL.py
@@ -0,0 +1,8 @@
+from MonetDBtesting.sqltest import SQLTestCase
+
+with SQLTestCase() as tc:
+ # optional or default connection
+ tc.connect()
+ with open('prepared-select-with-error-causes-hang.Bug-6761.sql') as f:
+ tc.execute(query=None, client='mclient', stdin=f)\
+
.assertMatchStableOut(fout='prepared-select-with-error-causes-hang.Bug-6761.stable.out')
diff --git
a/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.sql
@@ -0,0 +1,14 @@
+drop table if exists abacus;
+
+create table abacus ( "'Zeitachse'" date,"'Abo_ID'" int,"'description'"
varchar(256),"'Klassierungs-Typ'" clob,"'KlassierungApplikation'" clob,"'EP
Netto'" decimal,"'Nettoumsatz'" decimal,"'validfrom'" date,"'validuntil'"
date,"'Abo_aufgeschaltet'" int,"'Abo_deaktiviert'" int,"'Differenz'"
decimal,"'User_ID'" int,"'UserName'" varchar(256),"'client'"
varchar(256),"'Installations_ID'" int,"'InstallationsName'"
varchar(256),"'Installationsprovider_ID'" int,"'InstallationsproviderName'"
varchar(256),"'INR'" bigint,"'NAME'" varchar(256),"'PLZ'" varchar(256),"'ORT'"
varchar(256),"'STAAT'" varchar(256),"'Reseller_ID'" int,"'ResellerName'"
varchar(256),"'ET_ABO'" clob,"'UserName_1'" varchar(256),"'Anzahl_Abos'"
decimal,"'Anzahl_User'" decimal,"'Jahr'" decimal,"'Monat'"
decimal,"'Jahr_Monat'" clob,"'IFJ'" clob,"'RECNUM$'"
int,"'InlineCalc_Year_Zeitachse'" int);
+
+insert into abacus values
('2019-10-30',2239,'description','Klassierungs-Typ','Klassierung-Applikation',73.28,68.29,'2018-01-01','2018-12-01',563,63,56.3,852,'UserName','client',134,'InstallationsName',892,'InstallationsproviderName',9348,'NAME','PLZ','ORT','STAAT',934,'ResellerName','ET_ABO','UserName_1',849.2739,1742.718,395.824,39.824,'Jahr_Monat','IFJ',395824,3789);
+
+SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
+
+PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
+
+exec **(); -- hang in Apr2019-SP1, error in Nov2019
+
+drop table if exists abacus;
+
diff --git
a/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
new file mode 100644
--- /dev/null
+++
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.err
@@ -0,0 +1,31 @@
+stderr of test 'prepared-select-with-error-causes-hang.Bug-6761` in directory
'sql/test/BugTracker-2019` itself:
+
+# 18:47:57 >
+# 18:47:57 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"mapi_open=true" "--set" "mapi_port=33005" "--set"
"mapi_usock=/var/tmp/mtest-32072/.s.monetdb.33005" "--set" "monet_prompt="
"--forcemito"
"--dbpath=/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019"
"--set" "embedded_c=true"
+# 18:47:57 >
+
+# builtin opt gdk_dbpath =
/home/dinther/dev/dev/INSTALL/var/monetdb5/dbfarm/demo
+# 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 = 33005
+# cmdline opt mapi_usock = /var/tmp/mtest-32072/.s.monetdb.33005
+# cmdline opt monet_prompt =
+# cmdline opt gdk_dbpath =
/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019
+# cmdline opt embedded_c = true
+
+# 18:47:58 >
+# 18:47:58 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e"
"--host=/var/tmp/mtest-32072" "--port=33005"
+# 18:47:58 >
+
+
+# 18:48:59 >
+# 18:48:59 > "Done."
+# 18:48:59 >
+
diff --git
a/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
new file mode 100644
--- /dev/null
+++
b/sql/test/prepare/Tests/prepared-select-with-error-causes-hang.Bug-6761.stable.out
@@ -0,0 +1,50 @@
+stdout of test 'prepared-select-with-error-causes-hang.Bug-6761` in directory
'sql/test/BugTracker-2019` itself:
+
+
+# 18:47:57 >
+# 18:47:57 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set"
"mapi_open=true" "--set" "mapi_port=33005" "--set"
"mapi_usock=/var/tmp/mtest-32072/.s.monetdb.33005" "--set" "monet_prompt="
"--forcemito"
"--dbpath=/home/dinther/dev/dev/INSTALL/var/MonetDB/mTests_sql_test_BugTracker-2019"
"--set" "embedded_c=true"
+# 18:47:57 >
+
+# MonetDB 5 server v11.33.11 (Apr2019-SP1)
+# Serving database 'mTests_sql_test_BugTracker-2019', using 8 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers
+# Found 31.243 GiB available main-memory.
+# Copyright (c) 1993 - July 2008 CWI.
+# Copyright (c) August 2008 - 2020 MonetDB B.V., all rights reserved
+# Visit https://www.monetdb.org/ for further information
+# Listening for connection requests on
mapi:monetdb://localhost.localdomain:33005/
+# Listening for UNIX domain connection requests on
mapi:monetdb:///var/tmp/mtest-32072/.s.monetdb.33005
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+
+# 20:24:37 >
+# 20:24:37 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e"
"--host=/var/tmp/mtest-9798" "--port=31528"
+# 20:24:37 >
+
+#drop table if exists abacus;
+#create table abacus ( "'Zeitachse'" date,"'Abo_ID'" int,"'description'"
varchar(256),"'Klassierungs-Typ'" clob,"'KlassierungApplikation'" clob,"'EP
Netto'" decimal,"'Nettoumsatz'" decimal,"'validfrom'" date,"'validuntil'"
date,"'Abo_aufgeschaltet'" int,"'Abo_deaktiviert'" int,"'Differenz'"
decimal,"'User_ID'" int,"'UserName'" varchar(256),"'client'"
varchar(256),"'Installations_ID'" int,"'InstallationsName'"
varchar(256),"'Installationsprovider_ID'" int,"'InstallationsproviderName'"
varchar(256),"'INR'" bigint,"'NAME'" varchar(256),"'PLZ'" varchar(256),"'ORT'"
varchar(256),"'STAAT'" varchar(256),"'Reseller_ID'" int,"'ResellerName'"
varchar(256),"'ET_ABO'" clob,"'UserName_1'" varchar(256),"'Anzahl_Abos'"
decimal,"'Anzahl_User'" decimal,"'Jahr'" decimal,"'Monat'"
decimal,"'Jahr_Monat'" clob,"'IFJ'" clob,"'RECNUM$'"
int,"'InlineCalc_Year_Zeitachse'" int);
+#insert into abacus values
('2019-10-30',2239,'description','Klassierungs-Typ','Klassierung-Applikation',73.28,68.29,'2018-01-01','2018-12-01',563,63,56.3,852,'UserName','client',134,'InstallationsName',892,'InstallationsproviderName',9348,'NAME','PLZ','ORT','STAAT',934,'ResellerName','ET_ABO','UserName_1',849.2739,1742.718,395.824,39.824,'Jahr_Monat','IFJ',395824,3789);
+[ 1 ]
+#SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
+% sys.abacus # table_name
+% 'ResellerName' # name
+% varchar # type
+% 0 # length
+#PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
+#PREPARE SELECT "'ResellerName'" FROM abacus WHERE ( (
("'InstallationsproviderName'"='Bienz Pius Treuhand- und Revisions AG')) AND (
("'validuntil'"='2018-01-01' AND "'description'"='ABEA 2' AND (EXTRACT(YEAR
FROM "'Zeitachse'")*100 + EXTRACT(MONTH FROM "'Zeitachse'"))/100.0='2019.010'
AND "'UserName'"='AL - Astrid Lincke (Delphys)' AND
"'validfrom'"='2016-12-01')) AND ( ("'IFJ'"='ohne IFJ')) AND (
("'InlineCalc_Year_Zeitachse'"='2019'))) GROUP BY "'ResellerName'" LIMIT 1001
OFFSET 0;
+% .prepare, .prepare, .prepare, .prepare, .prepare,
.prepare # table_name
+% type, digits, scale, schema, table, column # name
+% varchar, int, int, str, str, str # type
+% 7, 3, 1, 0, 6, 14 # length
+[ "varchar", 256, 0, "", "abacus", "'ResellerName'"
]
+#exec 11(); -- hang in Apr2019-SP1, error in Nov2019
+% sys.abacus # table_name
+% 'ResellerName' # name
+% varchar # type
+% 0 # length
+#drop table if exists abacus;
+
+# 18:48:59 >
+# 18:48:59 > "Done."
+# 18:48:59 >
+
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list