Changeset: 8ad415289fd6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8ad415289fd6
Modified Files:
        sql/storage/store.c
Branch: Apr2019
Log Message:

No need to search twice for the schema.


diffs (15 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2609,8 +2609,9 @@ column_dup(sql_trans *tr, int flags, sql
                if (s->base.id == c->type.type->s->base.id) {
                        /* 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

Reply via email to