Changeset: 5d6275c5790e for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5d6275c5790e Modified Files: sql/backends/monet5/sql_scenario.c Branch: pyapi Log Message:
This messes up privileges in the normal mserver, so only do it in embedded. diffs (18 lines): diff --git a/sql/backends/monet5/sql_scenario.c b/sql/backends/monet5/sql_scenario.c --- a/sql/backends/monet5/sql_scenario.c +++ b/sql/backends/monet5/sql_scenario.c @@ -449,7 +449,13 @@ SQLinitClient(Client c) if (m->session->tr) reset_functions(m->session->tr); /* pass through credentials of the user if not console */ - if (c->user != 0) { + if ( +#ifdef _EMBEDDED_MONETDB_MONETDB_LIB_ + c->user != 0 +#else + !isAdministrator(c) +#endif + ) { schema = monet5_user_get_def_schema(m, c->user); if (!schema) { _DELETE(schema); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list