Changeset: db90946b30d2 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=db90946b30d2 Added Files: clients/R/Tests/deps-install.timeout sql/jdbc/tests/Tests/SQLcopyinto.SQL.bat sql/jdbc/tests/Tests/SQLcopyinto.SQL.sh sql/jdbc/tests/Tests/SQLcopyinto.stable.err sql/jdbc/tests/Tests/SQLcopyinto.stable.out sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.sql sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.stable.err sql/test/BugTracker-2018/Tests/timestamp-as-boolean.Bug-6642.stable.out sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.sql sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.stable.err sql/test/BugTracker-2018/Tests/timestamp-roundtrip.Bug-6640.stable.out sql/test/testdb-upgrade/Tests/upgrade.stable.out.powerpc64.int128 Modified Files: .hgtags MonetDB.spec NT/monetdb_config.h.in NT/rules.msc buildtools/ChangeLog-Archive buildtools/autogen/autogen/msc.py buildtools/doc/windowsbuild.rst clients/R/Tests/dbapply.R clients/R/Tests/deps-install.R clients/R/Tests/deps-test.R clients/R/Tests/deps-test.timeout clients/R/Tests/dplyr-flights.R clients/R/Tests/dplyr-flights.stable.err clients/R/Tests/install.R clients/mapiclient/mhelp.c clients/mapiclient/tachograph.c clients/mapilib/mapi.rc clients/odbc/driver/ODBCConvert.c clients/odbc/driver/ODBCUtil.c clients/odbc/driver/ODBCUtil.h clients/odbc/driver/SQLError.c clients/odbc/driver/SQLGetDescRec.c clients/odbc/driver/SQLGetDiagField.c clients/odbc/driver/SQLGetDiagRec.c clients/odbc/driver/driver.rc clients/odbc/winsetup/setup.rc common/stream/stream.c common/utils/mcrypt.c configure.ag debian/changelog debian/fix-deb.sh gdk/gdk_align.c gdk/gdk_bat.c gdk/gdk_batop.c gdk/gdk_cross.c gdk/gdk_join.c gdk/gdk_project.c gdk/gdk_select.c gdk/gdk_unique.c gdk/gdk_utils.c gdk/libbat.rc libversions monetdb5/mal/mal_linker.c monetdb5/modules/atoms/mtime.c monetdb5/modules/atoms/str.c monetdb5/modules/mal/mal_mapi.c monetdb5/modules/mal/pcre.c monetdb5/optimizer/opt_dataflow.c monetdb5/tools/libmonetdb5.rc sql/backends/monet5/UDF/pyapi/type_conversion.c sql/backends/monet5/UDF/pyapi/type_conversion.h sql/backends/monet5/rel_bin.c sql/backends/monet5/sql_scenario.c sql/backends/monet5/vaults/shp/shp.c sql/common/sql_types.c sql/include/sql_hash.h sql/jdbc/tests/Tests/All sql/jdbc/tests/Tests/BugSetQueryTimeout_Bug_3357.stable.out sql/server/rel_select.c sql/server/rel_sequence.c sql/server/rel_updates.c sql/storage/store.c sql/test/BugTracker-2012/Tests/update_crash.Bug-2655.sql sql/test/BugTracker-2012/Tests/update_crash.Bug-2655.stable.out sql/test/BugTracker-2018/Tests/All sql/test/Tests/seq-default.stable.out sql/test/emptydb-upgrade-chain-hge/Tests/upgrade.stable.out.int128 sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.32bit sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.int128 sql/test/emptydb-upgrade-chain/Tests/upgrade.stable.out.powerpc64.int128 sql/test/emptydb-upgrade-hge/Tests/upgrade.stable.out.int128 sql/test/emptydb-upgrade/Tests/upgrade.stable.out sql/test/emptydb-upgrade/Tests/upgrade.stable.out.32bit sql/test/emptydb-upgrade/Tests/upgrade.stable.out.int128 sql/test/pg_regress/Tests/update.stable.out sql/test/seq-default.sql sql/test/testdb-upgrade-chain-hge/Tests/upgrade.stable.out.int128 sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out.32bit sql/test/testdb-upgrade-chain/Tests/upgrade.stable.out.int128 sql/test/testdb-upgrade-hge/Tests/upgrade.stable.out.int128 sql/test/testdb-upgrade/Tests/upgrade.stable.out sql/test/testdb-upgrade/Tests/upgrade.stable.out.32bit sql/test/testdb-upgrade/Tests/upgrade.stable.out.int128 testing/exportutils.py tools/merovingian/daemon/config/monetdbd.in vertoo.data Branch: acticloud Log Message:
Merge Aug2018-SP1 release into acticloud diffs (truncated from 56132 to 300 lines): diff --git a/.hgtags b/.hgtags --- a/.hgtags +++ b/.hgtags @@ -709,3 +709,6 @@ 2d06f2ece18a5718d9cbab6e7ad64ace6b7d95bd 3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_5 2d06f2ece18a5718d9cbab6e7ad64ace6b7d95bd Aug2018_release 3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_release +a242d6de1de3dc99a9583d96a61c53044108e576 Aug2018_7 +3aaf6c916bd870cc478d3973241bc24cafbe1655 Aug2018_release +a242d6de1de3dc99a9583d96a61c53044108e576 Aug2018_release diff --git a/MonetDB.spec b/MonetDB.spec --- a/MonetDB.spec +++ b/MonetDB.spec @@ -1,5 +1,5 @@ %global name MonetDB -%global version 11.31.7 +%global version 11.31.9 %{!?buildno: %global buildno %(date +%Y%m%d)} # Use bcond_with to add a --with option; i.e., "without" is default. @@ -103,7 +103,7 @@ Vendor: MonetDB BV <i...@monetdb.org> Group: Applications/Databases License: MPLv2.0 URL: https://www.monetdb.org/ -Source: https://www.monetdb.org/downloads/sources/Aug2018/%{name}-%{version}.tar.bz2 +Source: https://www.monetdb.org/downloads/sources/Aug2018-SP1/%{name}-%{version}.tar.bz2 # we need systemd for the _unitdir macro to exist # we need checkpolicy and selinux-policy-devel for the SELinux policy @@ -997,6 +997,18 @@ done %postun -p /sbin/ldconfig %changelog +* Fri Oct 05 2018 Sjoerd Mullender <sjo...@acm.org> - 11.31.9-20181005 +- Rebuilt. +- BZ#6640: timestamp_to_str returning incorrectly adjusted results +- BZ#6641: race condition in SQL UDF with update +- BZ#6642: Hanging query +- BZ#6646: Example SQLcopyinto.java does not work + +* Wed Oct 3 2018 Sjoerd Mullender <sjo...@acm.org> - 11.31.9-20181005 +- buildtools: On Ubuntu 18.10 (Cosmic Cuttlefish), the libmonetdb5-server-bam package + cannot be built because of an incompatibility in the libbam library + (it cannot be used in a shared object. + * Wed Aug 29 2018 Sjoerd Mullender <sjo...@acm.org> - 11.31.7-20180829 - Rebuilt. diff --git a/NT/monetdb_config.h.in b/NT/monetdb_config.h.in --- a/NT/monetdb_config.h.in +++ b/NT/monetdb_config.h.in @@ -642,7 +642,7 @@ #define MONETDB5_PASSWDHASH_TOKEN SHA512 /* Release name or "unreleased" */ -#define MONETDB_RELEASE "Aug2018" +#define MONETDB_RELEASE "Aug2018-SP1" /* Define if you do not want assertions */ /* #undef NDEBUG */ @@ -666,7 +666,7 @@ #define PACKAGE_URL "https://www.monetdb.org/" /* Define to the version of this package. */ -#define PACKAGE_VERSION "11.31.7" +#define PACKAGE_VERSION "11.31.9" /* Path separator */ #define PATH_SEP ';' diff --git a/NT/rules.msc b/NT/rules.msc --- a/NT/rules.msc +++ b/NT/rules.msc @@ -6,7 +6,7 @@ # # Copyright 1997 - July 2008 CWI, August 2008 - 2018 MonetDB B.V. -VERSION=11.31.7 +VERSION=11.31.9 # ^^^^^^ # Maintained via vertoo. Please don't modify by hand! # Contact monetdb-develop...@lists.sourceforge.net for details and/or assistance. diff --git a/buildtools/ChangeLog-Archive b/buildtools/ChangeLog-Archive --- a/buildtools/ChangeLog-Archive +++ b/buildtools/ChangeLog-Archive @@ -1,6 +1,11 @@ # DO NOT EDIT THIS FILE -- MAINTAINED AUTOMATICALLY # This file contains past ChangeLog entries +* Wed Oct 3 2018 Sjoerd Mullender <sjo...@acm.org> - 11.31.9-20181005 +- On Ubuntu 18.10 (Cosmic Cuttlefish), the libmonetdb5-server-bam package + cannot be built because of an incompatibility in the libbam library + (it cannot be used in a shared object. + * Tue Aug 28 2018 Sjoerd Mullender <sjo...@acm.org> - 11.31.5-20180829 - Build the MonetDB-cfitsio RPM and libmonetdb5-server-cfitsio Debian/Ubuntu package. diff --git a/buildtools/autogen/autogen/msc.py b/buildtools/autogen/autogen/msc.py --- a/buildtools/autogen/autogen/msc.py +++ b/buildtools/autogen/autogen/msc.py @@ -326,18 +326,16 @@ def msc_dep(fd, tar, deplist, msc): fd.write(getsrc) x, de = split_filename(deplist[0]) of = b + '.' + de - of = msc_translate_file(of, msc) fd.write('\t$(YACC) $(YFLAGS) $(AM_YFLAGS) "%s"\n' % of) - if ext == "tab.c": + elif ext == "tab.c": fd.write(getsrc) x, de = split_filename(deplist[0]) of = b + '.' + de - of = msc_translate_file(of, msc) fd.write('\t$(YACC) $(YFLAGS) $(AM_YFLAGS) "%s"\n' % of) - if ext == "yy.c": + elif ext == "yy.c": fd.write(getsrc) fd.write('\t$(LEX) $(LFLAGS) $(AM_LFLAGS) "%s.l"\n' % b) - if ext in ("obj", "tab.obj", "yy.obj"): + elif ext in ("obj", "tab.obj", "yy.obj"): target, name = msc_find_target(tar, msc) if name[0] == '_': name = name[1:] @@ -346,7 +344,7 @@ def msc_dep(fd, tar, deplist, msc): if dext in ("c", "cpp", "yy.c", "tab.c"): fd.write('\t$(CC) /EHsc $(CFLAGS) $(%s_CFLAGS) $(GENDLL) -D_CRT_SECURE_NO_WARNINGS -DLIB%s "-Fo%s" -c "%s"\n' % (split_filename(msc_basename(src))[0], name, t, src)) - if ext == 'res': + elif ext == 'res': fd.write("\t$(RC) -fo%s %s\n" % (t, src)) def msc_deps(fd, deps, objext, msc): diff --git a/buildtools/doc/windowsbuild.rst b/buildtools/doc/windowsbuild.rst --- a/buildtools/doc/windowsbuild.rst +++ b/buildtools/doc/windowsbuild.rst @@ -805,7 +805,7 @@ The contents of the file referred to wit parameter may contain something like:: bits=32 - LIBPCRE=C:\Program Files\PCRE + LIBPCRE=C:\Program Files\PCRE LIBICONV=C:\Libraries\iconv-1.11.win32 LIBZLIB=C:\Libraries\zlib-1.2.8.win32 LIBXML2=C:\Libraries\libxml2-2.9.2.win32 @@ -813,50 +813,24 @@ parameter may contain something like:: Building Installers ~~~~~~~~~~~~~~~~~~~ -Installers can be built either using the full-blown Visual Studio user -interface or on the command line. To use the user interface, open one -or more of the files ``MonetDB5-SQL-Installer.sln``, -``MonetDB-ODBC-Driver.sln``, and ``MonetDB5-Geom-Module.sln`` in the -installation folder and select ``Build`` -> ``Build Solution``. To use -the command line, execute one or more of the commands in the -installation folder:: +The installers are built using the WiX Toolset. The WiX Toolset can +be installed using Chocolatey. - devenv MonetDB5-SQL-Installer.sln /build - devenv MonetDB-ODBC-Driver.sln /build - devenv MonetDB5-Geom-Module.sln /build +The Python scripts ``mksqlwxs.py`` and ``mkodbcwxs.py`` in the ``NT`` +subdirectory are used to create the files +``MonetDB5-SQL-Installer.wxs`` and ``MonetDB-ODBC-Installer.wxs``. +This happens as part of the normal build process. -In both cases, use the solutions (``.sln`` files) that are -appropriate. +These files then need to be processed using the ``candle`` command +from the WiX Toolset:: -There is an annoying bug in Visual Studio on Windows64 that affects -the MonetDB5-Geom-Module installer. The installer contains code to -check the registry to find out where MonetDB5/SQL is installed. The -bug is that the 64 bit installer will check the 32-bit section of the -registry. The code can be fixed by editing the generated installer -(``.msi`` file) using e.g. the program ``orca`` from Microsoft. Open -the installer in ``orca`` and locate the table ``RegLocator``. In the -Type column, change the value from ``2`` to ``18`` and save the file. -Alternatively, use the following Python script to fix the ``.msi`` -file:: + candle.exe -nologo -arch x64 MonetDB5-SQL-Installer.wxs + +Use ``-arch x86`` for 32 bit Windows. - # Fix a .msi (Windows Installer) file for a 64-bit registry search. - # Microsoft refuses to fix a bug in Visual Studio so that for a 64-bit - # build, the registry search will look in the 32-bit part of the - # registry instead of the 64-bit part of the registry. This script - # fixes the .msi to look in the correct part. - - import msilib - import sys - import glob +This command produces a file ``MonetDB5-SQL-Installer.wixobj`` which +needs to be processed with the ``light`` command from the toolset:: - def fixmsi(f): - db = msilib.OpenDatabase(f, msilib.MSIDBOPEN_DIRECT) - v = db.OpenView('UPDATE RegLocator SET Type = 18 WHERE Type = 2') - v.Execute(None) - v.Close() - db.Commit() + light.exe -nologo -sice:ICO03 -sice:ICE60 -sice:ICE82 -ext WixUIExtension MonetDB5-SQL-Installer.wixobj - if __name__ == '__main__': - for f in sys.argv[1:]: - for g in glob.glob(f): - fixmsi(g) +The same for the ODBC driver. diff --git a/clients/R/Tests/dbapply.R b/clients/R/Tests/dbapply.R --- a/clients/R/Tests/dbapply.R +++ b/clients/R/Tests/dbapply.R @@ -1,3 +1,5 @@ +cat("#~BeginProfilingOutput~#\n", file=stderr()) + if (Sys.getenv("TSTTRGDIR") != "") { .libPaths(c(.libPaths(), paste0(Sys.getenv("TSTTRGDIR"),"/rlibdir"))) } @@ -81,4 +83,6 @@ print(res) dbRemoveTable(con,tname) stopifnot(identical(FALSE, dbExistsTable(con,tname))) +cat("#~EndProfilingOutput~#\n", file=stderr()) + print("SUCCESS") diff --git a/clients/R/Tests/deps-install.R b/clients/R/Tests/deps-install.R --- a/clients/R/Tests/deps-install.R +++ b/clients/R/Tests/deps-install.R @@ -1,6 +1,6 @@ # autoinstall DBI and digest, we need those to install MonetDB.R options(warn = -1) -packages_required <- c("digest", "DBI") +packages_required <- c("digest", "DBI", "devtools") cat("#~BeginProfilingOutput~#\n", file=stderr()) cat("#~BeginProfilingOutput~#\n", file=stdout()) diff --git a/clients/R/Tests/deps-install.timeout b/clients/R/Tests/deps-install.timeout new file mode 100644 --- /dev/null +++ b/clients/R/Tests/deps-install.timeout @@ -0,0 +1,1 @@ +2 diff --git a/clients/R/Tests/deps-test.R b/clients/R/Tests/deps-test.R --- a/clients/R/Tests/deps-test.R +++ b/clients/R/Tests/deps-test.R @@ -1,4 +1,4 @@ -packages_required <- c("assertthat","testthat","survey","nycflights13","RSQLite","dbplyr","dplyr","gdata","callr","devtools","DBItest") +packages_required <- c("assertthat","testthat","survey","nycflights13","RSQLite","dbplyr","dplyr","gdata","callr","DBItest") install_or_upgrade_packages <- function(lp) { np <- lp[!(lp %in% installed.packages()[,"Package"])] diff --git a/clients/R/Tests/deps-test.timeout b/clients/R/Tests/deps-test.timeout --- a/clients/R/Tests/deps-test.timeout +++ b/clients/R/Tests/deps-test.timeout @@ -1,1 +1,1 @@ -5 +20 diff --git a/clients/R/Tests/dplyr-flights.R b/clients/R/Tests/dplyr-flights.R --- a/clients/R/Tests/dplyr-flights.R +++ b/clients/R/Tests/dplyr-flights.R @@ -1,3 +1,5 @@ +cat("#~BeginProfilingOutput~#\n", file=stderr()) + ff <- textConnection("asdf", open="w") # hide output from connect and attach since it would blow up the test output # dangerous since it might hide useful warnings @@ -118,5 +120,6 @@ so(flights %>% ) %>% filter(arr > 30 | dep > 30)) +cat("#~EndProfilingOutput~#\n", file=stderr()) print("SUCCESS") diff --git a/clients/R/Tests/dplyr-flights.stable.err b/clients/R/Tests/dplyr-flights.stable.err --- a/clients/R/Tests/dplyr-flights.stable.err +++ b/clients/R/Tests/dplyr-flights.stable.err @@ -30,7 +30,6 @@ stderr of test 'dplyr-flights` in direct # 11:44:05 > "R" "--vanilla" "--slave" "--args" "30588" # 11:44:05 > -Identifier(s) "year", "month", "day", "hour", "minute" are reserved SQL keywords and need(s) to be quoted in queries. # 11:44:15 > # 11:44:15 > "Done." diff --git a/clients/R/Tests/install.R b/clients/R/Tests/install.R --- a/clients/R/Tests/install.R +++ b/clients/R/Tests/install.R @@ -2,13 +2,7 @@ options(warn = -1) cat("#~BeginProfilingOutput~#\n", file=stderr()) cat("#~BeginProfilingOutput~#\n", file=stdout()) -install_submodule_git <- function(x, ...) { - install_dir <- tempfile() - system(paste("git clone --recursive --depth 1", shQuote(x), -shQuote(install_dir))) - devtools::install(install_dir, ...) -} -install_submodule_git("https://github.com/hannesmuehleisen/MonetDBLite-R") +devtools::install_github("hannesmuehleisen/MonetDBLite-R") cat("#~EndProfilingOutput~#\n", file=stderr()) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list