Changeset: c1e808979190 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c1e808979190
Modified Files:
sql/backends/monet5/vaults/monetdb/monetdb.c
Branch: Mar2025
Log Message:
add proper error of missing remote table
diffs (15 lines):
diff --git a/sql/backends/monet5/vaults/monetdb/monetdb.c
b/sql/backends/monet5/vaults/monetdb/monetdb.c
--- a/sql/backends/monet5/vaults/monetdb/monetdb.c
+++ b/sql/backends/monet5/vaults/monetdb/monetdb.c
@@ -111,6 +111,11 @@ monetdb_relation(mvc *sql, sql_subfunc *
goto end;
}
+ if (mapi_get_row_count(hdl) == 0) { /* non existing table */
+ ret = sa_message(sql->sa, "Table %s.%s is missing on remote
server", sname, tname);
+ goto end;
+ }
+
if (!aname)
aname = sa_strdup(sql->sa, tname);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]