Changeset: a5aaa3344dd5 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/a5aaa3344dd5 Modified Files: clients/odbc/driver/SQLConnect.c sql/backends/monet5/sql_bincopyconvert.c sql/backends/monet5/sql_gencode.c sql/server/sql_semantic.c sql/server/sqlparse.c Branch: default Log Message:
Merge with Dec2025 branch.
diffs (79 lines):
diff --git a/sql/backends/monet5/sql_bincopyconvert.c
b/sql/backends/monet5/sql_bincopyconvert.c
--- a/sql/backends/monet5/sql_bincopyconvert.c
+++ b/sql/backends/monet5/sql_bincopyconvert.c
@@ -637,7 +637,7 @@ process_blobs(bstream *bs, BAT *bat, boo
{
static const char mal_operator[] = "sql.importColumn";
const blob *nil_value = ATOMnilptr(TYPE_blob);
- const blob empty_value = (blob) {
+ static const blob empty_value = {
.nitems = 0,
};
uint64_t header;
diff --git a/sql/server/sql_semantic.c b/sql/server/sql_semantic.c
--- a/sql/server/sql_semantic.c
+++ b/sql/server/sql_semantic.c
@@ -124,30 +124,30 @@ tmp_schema(mvc *sql)
return reserr; \
} \
EXTRA_CONDITION(EXTRA); /* for functions without
schema, 'sys' is a valid schema to bind them */ \
- if (!res) { \
- CALL; \
- } \
- } else { \
- sql_schema *cur = cur_schema(sql); \
- char *session_schema = cur->base.name; \
- \
- EXTRA; \
+ if (!res) {
\
+ CALL;
\
+ }
\
+ } else {
\
+ sql_schema *cur = cur_schema(sql);
\
+ char *session_schema = cur->base.name;
\
+
\
+ EXTRA;
\
if (!res && !sql->schema_path_has_tmp &&
strcmp(session_schema, "tmp") != 0) { /* if 'tmp' is not in the search path,
search it before all others */ \
- next = tmp_schema(sql); \
- CALL; \
- } \
- if (!res) { /* then current session's schema */ \
- next = cur; \
- CALL; \
- } \
- if (!res) { \
- /* object not found yet, look inside search
path */ \
+ next = tmp_schema(sql);
\
+ CALL;
\
+ }
\
+ if (!res) { /* then current session's schema */
\
+ next = cur;
\
+ CALL;
\
+ }
\
+ if (!res) {
\
+ /* object not found yet, look inside search
path */ \
for (node *n = sql->schema_path->h ; n && !res
; n = n->next) { \
- str p = (str) n->data; \
+ str p = (str) n->data;
\
if (strcmp(session_schema, p) != 0 &&
(next = mvc_bind_schema(sql, p))) \
- CALL; \
- } \
- } \
+ CALL;
\
+ }
\
+ }
\
if (!res && !sql->schema_path_has_sys &&
strcmp(session_schema, "sys") != 0) { /* if 'sys' is not in the current path
search it next */ \
next = mvc_bind_schema(sql, "sys"); \
CALL; \
diff --git a/sql/server/sqlparse.c b/sql/server/sqlparse.c
--- a/sql/server/sqlparse.c
+++ b/sql/server/sqlparse.c
@@ -211,7 +211,7 @@ dlist2string(allocator *ta, mvc *sql, dl
size_t seplen = strlen(sep);
- bool first_el = (lb != NULL);
+ bool first_el = lb != NULL;
for (n=l->h; n; n = n->next) {
char *s = dnode2string(ta, sql, n, expression, err, depth,
indent);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]
