MonetDB: Aug2024 - Approve upgrades.

2024-07-09 Thread Sjoerd Mullender via checkin-list
Changeset: 8c31cf24cb03 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8c31cf24cb03
Modified Files:

sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out
sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade-hge/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade/Tests/upgrade.stable.out
sql/test/emptydb-previous-upgrade/Tests/upgrade.stable.out.int128
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.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.int128
sql/test/emptydb/Tests/check.stable.out.int128

sql/test/testdb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade-chain/Tests/upgrade.stable.out
sql/test/testdb-previous-upgrade-chain/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade-hge/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade/Tests/upgrade.stable.out
sql/test/testdb-previous-upgrade/Tests/upgrade.stable.out.int128
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.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.int128
Branch: Aug2024
Log Message:

Approve upgrades.


diffs (truncated from 807 to 300 lines):

diff --git 
a/sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128 
b/sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
--- 
a/sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
+++ 
b/sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
@@ -1029,20 +1029,25 @@ create function sys.sessions()
  )
  external name sql.sessions;
 create view sys.sessions as select * from sys.sessions();
+grant select on sys.sessions to public;
 create procedure sys.setclientinfo(property string, value string)
  external name clients.setinfo;
 grant execute on procedure sys.setclientinfo(string, string) to public;
-create table sys.clientinfo_properties(prop string, session_attr string);
+create table sys.clientinfo_properties(prop varchar(40) NOT NULL, session_attr 
varchar(40) NOT NULL);
 insert into sys.clientinfo_properties values
  ('ClientHostname', 'hostname'),
  ('ApplicationName', 'application'),
  ('ClientLibrary', 'client'),
- ('ClientRemark', 'remark'),
- ('ClientPid', 'clientpid');
+ ('ClientPid', 'clientpid'),
+ ('ClientRemark', 'remark');
+grant select on sys.clientinfo_properties to public;
 update sys.functions set system = true where schema_id = 2000 and name in 
('setclientinfo', 'sessions');
 update sys._tables set system = true where schema_id = 2000 and name in 
('clientinfo_properties', 'sessions');
 
 Running database upgrade commands:
+alter table sys.clientinfo_properties SET READ ONLY;
+
+Running database upgrade commands:
 DROP TABLE sys.key_types;
 CREATE TABLE sys.key_types (
key_type_id   SMALLINT NOT NULL PRIMARY KEY,
diff --git a/sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out 
b/sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out
--- a/sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out
+++ b/sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out
@@ -1017,20 +1017,25 @@ create function sys.sessions()
  )
  external name sql.sessions;
 create view sys.sessions as select * from sys.sessions();
+grant select on sys.sessions to public;
 create procedure sys.setclientinfo(property string, value string)
  external name clients.setinfo;
 grant execute on procedure sys.setclientinfo(string, string) to public;
-create table sys.clientinfo_properties(prop string, session_attr string);
+create table sys.clientinfo_properties(prop varchar(40) NOT NULL, session_attr 
varchar(40) NOT NULL);
 insert into sys.clientinfo_properties values
  ('ClientHostname', 'hostname'),
  ('ApplicationName', 'application'),
  ('ClientLibrary', 'client'),
- ('ClientRemark', 'remark'),
- ('ClientPid', 'clientpid');
+ ('ClientPid', 'clientpid'),
+ ('ClientRemark', 'remark');
+grant select on sys.clientinfo_properties to public;
 update sys.functions set system = true where schema_id = 2000 and name in 
('setclientinfo', 'sessions');
 update sys._tables set system = true where schema_id = 2000 and name in 
('clientinfo_properties', 'sessions');
 
 Run

MonetDB: default - Merge with Aug2024 branch.

2024-07-09 Thread Sjoerd Mullender via checkin-list
Changeset: f4ea8769ee4e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f4ea8769ee4e
Modified Files:
sql/backends/monet5/sql_upgrades.c
sql/server/rel_select.c
sql/storage/store.c

sql/test/emptydb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out
sql/test/emptydb-previous-upgrade-chain/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade-hge/Tests/upgrade.stable.out.int128
sql/test/emptydb-previous-upgrade/Tests/upgrade.stable.out
sql/test/emptydb-previous-upgrade/Tests/upgrade.stable.out.int128
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.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.int128
sql/test/emptydb/Tests/check.stable.out.int128

sql/test/testdb-previous-upgrade-chain-hge/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade-chain/Tests/upgrade.stable.out
sql/test/testdb-previous-upgrade-chain/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade-hge/Tests/upgrade.stable.out.int128
sql/test/testdb-previous-upgrade/Tests/upgrade.stable.out
sql/test/testdb-previous-upgrade/Tests/upgrade.stable.out.int128
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.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.int128
testing/Mtest.py.in
Branch: default
Log Message:

Merge with Aug2024 branch.


diffs (truncated from 3368 to 300 lines):

diff --git a/clients/examples/C/streamcat.c b/clients/examples/C/streamcat.c
--- a/clients/examples/C/streamcat.c
+++ b/clients/examples/C/streamcat.c
@@ -422,7 +422,7 @@ opener_rstream(char *filename)
 {
stream *s = open_rstream(filename);
if (!mnstr_isbinary(s))
-   croak(2, "open_rastream returned binary stream");
+   croak(2, "open_rstream returned text stream");
return s;
 }
 
diff --git a/clients/odbc/driver/ODBCAttrs.c b/clients/odbc/driver/ODBCAttrs.c
--- a/clients/odbc/driver/ODBCAttrs.c
+++ b/clients/odbc/driver/ODBCAttrs.c
@@ -50,6 +50,7 @@ const struct attr_setting attr_settings[
{ "CLIENTINFO", "Send Client Info", MP_CLIENT_INFO },
{ "APPNAME", "Application Name", MP_CLIENT_APPLICATION },
{ "CLIENTREMARK", "Client Remark", MP_CLIENT_REMARK },
+   { "MAPTOLONGVARCHAR", NULL, MP_MAPTOLONGVARCHAR },
 };
 
 const int attr_setting_count = sizeof(attr_settings) / 
sizeof(attr_settings[0]);
diff --git a/clients/odbc/driver/ODBCDbc.c b/clients/odbc/driver/ODBCDbc.c
--- a/clients/odbc/driver/ODBCDbc.c
+++ b/clients/odbc/driver/ODBCDbc.c
@@ -80,7 +80,6 @@ newODBCDbc(ODBCEnv *env)
*dbc = (ODBCDbc) {
.Env = env,
.settings = settings,
-   .sql_attr_autocommit = SQL_AUTOCOMMIT_ON,   /* default is 
autocommit */
.sql_attr_metadata_id = SQL_FALSE,
/* add this dbc to start of the administrative linked dbc list 
*/
.next = env->FirstDbc,
diff --git a/clients/odbc/driver/ODBCDbc.h b/clients/odbc/driver/ODBCDbc.h
--- a/clients/odbc/driver/ODBCDbc.h
+++ b/clients/odbc/driver/ODBCDbc.h
@@ -59,7 +59,6 @@ typedef struct tODBCDRIVERDBC {
bool allow_hugeint; /* whether the application deals with HUGEINT */
bool raw_strings;   /* server uses raw strings */
int mapToLongVarchar;   /* when > 0 we map WVARCHAR to WLONGVARCHAR, 
default 0 */
-   SQLUINTEGER sql_attr_autocommit;
SQLUINTEGER sql_attr_metadata_id;
 
/* MonetDB connection handle & status information */
@@ -142,19 +141,10 @@ ODBCError *getDbcError(ODBCDbc *dbc);
 void destroyODBCDbc(ODBCDbc *dbc);
 
 int ODBCGetKeyAttr(const SQLCHAR **conn, SQLSMALLINT *nconn, char **key, char 
**attr);
-SQLRETURN ODBCConnectionString(SQLRETURN rc, ODBCDbc *dbc,
-  SQLCHAR *OutConnectionString,
-  SQLSMALLINT BufferLength,
-  SQLSMALLINT *StringLength2Ptr,
-  const char *dsn, const char *uid,
-  const char *pwd, const char *host,
-  int port, const char *database,
-  int mapToLongVarchar);
 SQLRETURN MNDBAllocStmt(ODBCDbc *dbc, SQLHANDLE *pnOutputHandle);
 SQLRETURN MNDBConnect(ODBCDbc *dbc, const

MonetDB: Aug2024 - Mention public select privilege on sys.sessio...

2024-07-09 Thread Joeri van Ruth via checkin-list
Changeset: 08cc537c4877 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/08cc537c4877
Modified Files:
sql/ChangeLog.Aug2024
Branch: Aug2024
Log Message:

Mention public select privilege on sys.sessions in client info ChangeLog entry

See #7549


diffs (12 lines):

diff --git a/sql/ChangeLog.Aug2024 b/sql/ChangeLog.Aug2024
--- a/sql/ChangeLog.Aug2024
+++ b/sql/ChangeLog.Aug2024
@@ -8,6 +8,8 @@
 * Wed May 29 2024 Joeri van Ruth 
 - Extended view sys.sessions and function sys.sessions() with new columns:
   language, peer, hostname, application, client, clientpid and remark.
+- All users now have SELECT privilege on view sys.sessions, but non-admin
+  users only see their own sessions.
 - Added procedure sys.setclientinfo(property string, value string)
   to allow the client application to set a specific client info property.
 - Added system table sys.clientinfo_properties that lists the supported
___
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org


MonetDB: cmp-or-patterns - Merges default

2024-07-09 Thread stefanos mavros via checkin-list
Changeset: 65314a3e0074 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/65314a3e0074
Branch: cmp-or-patterns
Log Message:

Merges default


diffs (truncated from 9025 to 300 lines):

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md 
b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,34 +0,0 @@

-name: Bug report
-about: Create a report to help us improve the sytem 
-title: ''
-labels: ''
-assignees: ''
-

-
-**Describe the bug**
-A clear and concise description of what the bug is.
-
-**To Reproduce**
-Create a setting with minimal input for an external user to demonstrate the 
buggy behavior.
-This includes the relevant part of the database schema description.
-Performance trace of the rogue query (using the TRACE command)
-
-**Expected behavior**
-A clear and concise description of what you expected to happen.
-
-**Screenshots**
-If applicable, add screenshots to help explain your problem.
-
-**Software versions**
- - MonetDB version number [a milestone label]
- - OS and version: [e.g. Ubuntu 18.04]
- - Installed from release package or self-installed and compiled
-
-
-**Issue labeling **
-Make liberal use of the labels to characterise the issue topics. e.g. identify 
severity, version, etc..
-
-**Additional context**
-Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml 
b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,61 @@
+name: Bug report
+description: Use this template to report bugs in MonetDB
+labels: ["needs triage"]
+body:
+  - type: textarea
+id: summary
+attributes:
+  label: Describe the bug
+  description: |
+Clear and concise description of what the bug is.
+validations:
+  required: true
+  - type: textarea
+id: reproduction
+attributes:
+  label: Reproduction steps
+  description: |
+Create a setting with minimal input for an external user to 
demonstrate the buggy behavior.
+This includes the relevant part of the database schema description.
+Performance trace of the rogue query (using the TRACE command).
+validations:
+  required: false
+  - type: textarea
+id: expected
+attributes:
+  label: Expected behavior
+  description: |
+Clear and concise description of what you expected to happen.
+validations:
+  required: false
+  - type: input
+id: mdbversion
+attributes:
+  label: MonetDB release
+  placeholder: e.g., Dec2023_SP1, 11.49.1
+validations:
+  required: true
+  - type: dropdown
+id: binsource
+attributes:
+  label: Executables source
+  options:
+- "Release packages"
+- "Self compiled and installed"
+validations:
+  required: true
+  - type: input
+id: osversion
+attributes:
+  label: Operating System
+  placeholder: e.g., Fedora Linux 39 (Workstation Edition)
+validations:
+  required: true
+  - type: textarea
+id: additional
+attributes:
+  label: Additional context
+  description: |
+Add any other context or screenshots about the problem here.
+validations:
+  required: false
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md 
b/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,20 +0,0 @@

-name: Feature request
-about: Suggest an idea for this project
-title: ''
-labels: ''
-assignees: ''
-

-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want to happen.
-
-**Describe alternatives you've considered**
-A clear and concise description of any alternative solutions or features 
you've considered.
-
-**Additional context**
-Add any other context or screenshots about the feature request here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml 
b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,36 @@
+name: Feature request
+description: Use this template for feature requests
+labels: ["needs triage"]
+body:
+  - type: textarea
+id: problem
+attributes:
+  label: Is your feature request related to a problem? Describe it
+  description: |
+A clear and concise description of what the problem is.
+validations:
+  required: true
+  - type: textarea
+id: solution
+attributes:
+  label: Describe the solution you'd like to see implemented
+  description: |
+A clear and concise description of what you want to happen.
+validations:
+  required: true
+  - type: textarea
+id: alternatives
+attrib

MonetDB: Dec2023 - Dec2023-SP4 was released.

2024-07-09 Thread Sjoerd Mullender via checkin-list
Changeset: 9a3053d4905b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9a3053d4905b
Modified Files:
.hgtags
Branch: Dec2023
Log Message:

Dec2023-SP4 was released.


diffs (8 lines):

diff --git a/.hgtags b/.hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -828,3 +828,4 @@ d656785f49ee62c19705722aa6b7c171904c64d5
 9a694c41042503a22d6c92aeab5bc4ca1912b62e Dec2023_9
 9a694c41042503a22d6c92aeab5bc4ca1912b62e Dec2023_SP3_release
 cde7d8f7c99540a8c95856df052a9f123b0c1643 Dec2023_11
+cde7d8f7c99540a8c95856df052a9f123b0c1643 Dec2023_SP4_release
___
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org