Changeset: 6e409a584b97 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/6e409a584b97 Modified Files: sql/backends/monet5/sql_scenario.c Branch: Jul2021 Log Message:
For some reason, there are two location where the timezone is stored: initialize both. diffs (17 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 @@ -300,7 +300,12 @@ SQLprepareClient(Client c, int login) } else if (sscanf(tok, "columnar_protocol=%d", &value) == 1) { c->protocol = (value != 0) ? PROTOCOL_COLUMNAR : PROTOCOL_9; } else if (sscanf(tok, "time_zone=%d", &value) == 1) { - m->timezone = 1000 * value; + sql_schema *s = mvc_bind_schema(m, "sys"); + sql_var *var = find_global_var(m, s, "current_timezone"); + ValRecord val; + VALinit(&val, TYPE_lng, &(lng){1000 * value}); + sql_update_var(m, s, "current_timezone", &val); + sqlvar_set(var, &val); } else { msg = createException(SQL, "SQLprepareClient", SQLSTATE(42000) "unexpected handshake option: %s", tok); goto bailout; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list