Changeset: 6699745c6c70 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6699745c6c70
Modified Files:
sql/backends/monet5/sql_scenario.c
Branch: Jun2020_prof_ext
Log Message:
Strlen instead of sizeof.
diffs (12 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
@@ -1185,7 +1185,7 @@ SQLparser(Client c)
m->query = q;
if(malProfileMode > 0) {
- str escaped_query = m->query ? mal_quote(m->query,
sizeof(m->query)) : NULL;
+ str escaped_query = m->query ? mal_quote(m->query,
strlen(m->query)) : NULL;
generic_event("sql_parse",
(struct GenericEvent)
{ &c->idx, &(c->curprg->def->tag),
NULL, escaped_query, m->query ? 0 : 1, },
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]