Changeset: b661cc409bd8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b661cc409bd8
Modified Files:
clients/mapiclient/dump.c
Branch: nested
Log Message:
removes magic number from has_multiset() query
diffs (20 lines):
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -426,9 +426,13 @@ has_multiset(Mapi mid)
return answer;
if ((hdl = mapi_query(mid,
- "select id from sys._columns"
- " where table_id = 2076"
- " and name = 'multiset'")) ==
NULL ||
+ "select c.*, t.name"
+ " from sys._columns c"
+ " join sys._tables t on t.id
= c.table_id"
+ " join sys.schemas s on s.id
= t.schema_id"
+ " where s.name = 'sys'"
+ " and t.name = '_columns'"
+ " and c.name =
'multiset'")) == NULL ||
mapi_error(mid))
goto bailout;
ret = mapi_get_row_count(hdl) == 1;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]