Changeset: 929f0547033f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=929f0547033f
Modified Files:
        sql/common/sql_types.c
Branch: default
Log Message:

allow multiplication/division of decimals by integers


diffs (12 lines):

diff --git a/sql/common/sql_types.c b/sql/common/sql_types.c
--- a/sql/common/sql_types.c
+++ b/sql/common/sql_types.c
@@ -1621,7 +1621,7 @@ sqltypeinit( sql_allocator *sa)
        sql_create_func(sa, "not", "calc", "not", FALSE, FALSE, SCALE_FIX, 0, 
BIT, 1, BIT);
 
        /* allow smaller types for arguments of mul/div */
-       for (t = numerical, t++; t != decimals; t++) {
+       for (t = numerical, t++; t != floats; t++) {
                sql_type **u;
                for (u = numerical, u++; u != decimals; u++) {
                        if (t != u && (*t)->localtype >  (*u)->localtype) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to