Changeset: 4df3987d1ee4 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4df3987d1ee4 Added Files: sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.sql sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.err sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.out Modified Files: sql/jdbc/tests/Tests/All sql/test/BugTracker-2019/Tests/All Branch: Nov2019 Log Message:
Merge with Apr2019 diffs (247 lines): diff --git a/sql/jdbc/tests/Tests/All b/sql/jdbc/tests/Tests/All --- a/sql/jdbc/tests/Tests/All +++ b/sql/jdbc/tests/Tests/All @@ -44,3 +44,4 @@ HAVE_JDBCTESTS?Bug_Connect_as_voc_getMet HAVE_JDBCTESTS?Bug_PrepStmtSetString_6382 HAVE_JDBCTESTS?Bug_LargeQueries_6571_6693 HAVE_JDBCTESTS?Bug_IsValid_Timeout_Bug_6782 +HAVE_JDBCTESTS?Bug_PrepStmt_With_Errors_Jira292 diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat new file mode 100755 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat @@ -0,0 +1,1 @@ +@call "%TSTSRCDIR%\Test.SQL.bat" %* diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh new file mode 100755 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +$TSTSRCDIR/Test.SQL.sh $* diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err new file mode 100644 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err @@ -0,0 +1,39 @@ +stderr of test 'Bug_PrepStmt_With_Errors_Jira292` in directory 'sql/jdbc/tests` itself: + + +# 14:46:39 > +# 14:46:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35788" "--set" "mapi_usock=/var/tmp/mtest-8623/.s.monetdb.35788" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests" +# 14:46:39 > + +# builtin opt gdk_dbpath = /export/scratch2/dinther/INSTALL/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 = 35788 +# cmdline opt mapi_usock = /var/tmp/mtest-8623/.s.monetdb.35788 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests +# cmdline opt gdk_debug = 536870922 + +# 14:46:39 > +# 14:46:39 > "./Bug_PrepStmtSetObject_CLOB_6349.SQL.sh" "Bug_PrepStmtSetObject_CLOB_6349" +# 14:46:39 > + + +# 14:46:39 > +# 14:46:39 > java Bug_PrepStmtSetObject_CLOB_6349 "jdbc:monetdb://toulouse:35788/mTests_sql_jdbc_tests?user=monetdb&password=monetdb" +# 14:46:39 > + + +# 14:46:40 > +# 14:46:40 > "Done." +# 14:46:40 > + diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out new file mode 100644 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out @@ -0,0 +1,55 @@ +stdout of test 'Bug_PrepStmt_With_Errors_Jira292` in directory 'sql/jdbc/tests` itself: + + +# 14:46:39 > +# 14:46:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35788" "--set" "mapi_usock=/var/tmp/mtest-8623/.s.monetdb.35788" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests" +# 14:46:39 > + +# MonetDB 5 server v11.27.2 +# This is an unreleased version +# Serving database 'mTests_sql_jdbc_tests', using 8 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers +# Found 15.588 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved +# Visit https://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://toulouse.da.cwi.nl:35788/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-8623/.s.monetdb.35788 +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +# 20:28:13 > +# 20:28:13 > "./Bug_PrepStmt_With_Errors_Jira292.SQL.sh" "Bug_PrepStmt_With_Errors_Jira292" +# 20:28:13 > + +# 14:46:39 > +# 14:46:39 > "./Bug_PrepStmtSetObject_CLOB_6349.SQL.sh" "Bug_PrepStmtSetObject_CLOB_6349" +# 14:46:39 > + + +# 14:46:39 > +# 14:46:39 > java Bug_PrepStmtSetObject_CLOB_6349 "jdbc:monetdb://toulouse:35788/mTests_sql_jdbc_tests?user=monetdb&password=monetdb" +# 14:46:39 > + +0. true true +1. table created and inserted 1 row +2. before select query execution +2a. select query executed +2c. closed select query resultset +2d. normal end of select query +3. before creating a prepared select query +3a. prepared select query +3b. Prepared Query has 0 parameters. +3c. Prepared Query has 1 columns. Type of first is: varchar +3d. before executing the prepared select query +3e. prepared select query executed +3f. prepared Query ResultSet has 1 columns. Type of first is: varchar +3h. closed prepared select query resultset +3i. normal end of prepared select query +4. drop table +5. normal end of test + +# 19:43:34 > +# 19:43:34 > "Done." +# 19:43:34 > + 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 @@ -40,6 +40,7 @@ KNOWNFAIL?grant-select-column.Bug-6765 next-get-value-bulk.Bug-6766 filter_json_null.Bug-6773 prod-decimals.Bug-6774 +prepared-select-with-error-causes-hang.Jira-292 NOT_IN-AND-OR-wrong-results.Bug-6775 outer-join-varchar.Bug-6776 msqldump-mapi-cache.Bug-6777 diff --git a/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.sql b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.sql new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.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/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.err b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.err @@ -0,0 +1,31 @@ +stderr of test 'prepared-select-with-error-causes-hang.Jira-292` 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.Jira-292.stable.out b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/BugTracker-2019/Tests/prepared-select-with-error-causes-hang.Jira-292.stable.out @@ -0,0 +1,50 @@ +stdout of test 'prepared-select-with-error-causes-hang.Jira-292` 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 - 2019 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 checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list