Changeset: 7b3f370c52b6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7b3f370c52b6
Modified Files:
        sql/server/sql_qc.c
Branch: default
Log Message:

During query caching we should correctly check for
overlapping value types (NUM vs DEC)


diffs (12 lines):

diff --git a/sql/server/sql_qc.c b/sql/server/sql_qc.c
--- a/sql/server/sql_qc.c
+++ b/sql/server/sql_qc.c
@@ -183,7 +183,7 @@ param_list_cmp(sql_subtype *typelist, at
                           (!(tp->type->eclass == EC_DEC &&
                              at->type->eclass == EC_NUM &&
                              tp->type->localtype >= at->type->localtype &&
-                            (at->digits <= tp->digits || atom_num_digits(a) <= 
tp->digits) && at->scale <= tp->scale)) &&
+                            atom_num_digits(a)+tp->scale <= tp->digits)) &&
                        /*
                           (!(tp->type->eclass == EC_DEC &&
                              at->type->eclass == EC_DEC &&
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to