Changeset: e3d901653324 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e3d901653324
Modified Files:
        sql/server/rel_schema.c
Branch: Jun2020
Log Message:

Small remark, if the classes are external, they must bound to the same internal 
type


diffs (12 lines):

diff --git a/sql/server/rel_schema.c b/sql/server/rel_schema.c
--- a/sql/server/rel_schema.c
+++ b/sql/server/rel_schema.c
@@ -322,6 +322,8 @@ column_constraint_name(mvc *sql, symbol 
 static bool
 foreign_key_check_types(sql_subtype *lt, sql_subtype *rt)
 {
+       if (lt->type->eclass == EC_EXTERNAL && rt->type->eclass == EC_EXTERNAL)
+               return lt->type->localtype == rt->type->localtype;
        return lt->type->eclass == rt->type->eclass || 
(EC_VARCHAR(lt->type->eclass) && EC_VARCHAR(rt->type->eclass));
 }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to