Changeset: 663505ca9818 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=663505ca9818
Modified Files:
sql/storage/store.c
Branch: Apr2019
Log Message:
Improve comment.
diffs (18 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2607,10 +2607,11 @@ column_dup(sql_trans *tr, int flags, sql
sql_type *lt = NULL;
if (s->base.id == c->type.type->s->base.id) {
- /* current column belongs to current schema. So search
there for current user type. */
+ /* Current user type belongs to current schema. So
search there for current user type. */
lt = find_sql_type(s, c->type.type->base.name);
- } else {
- lt = sql_trans_bind_type(tr, find_sql_schema_id(tr,
c->type.type->s->base.id), c->type.type->base.name);
+ } else {
+ /* Current user type belongs to another schema in the
current transaction. Search there for current user type. */
+ lt = sql_trans_bind_type(tr, NULL,
c->type.type->base.name);
}
if (lt == NULL)
GDKfatal("SQL type %s missing",
c->type.type->base.name);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list