Changeset: abfb993b08de for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/abfb993b08de
Modified Files:
        sql/common/sql_types.c
Branch: interval-day-second
Log Message:

Try to fix interval bug by taking ->digits into account for EC_SEC and EC_MONTH


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
@@ -357,6 +357,8 @@ subtype_cmp(sql_subtype *t1, sql_subtype
        switch (t1->type->eclass) {
                case EC_SEC:
                case EC_MONTH:
+                       if (t1->digits != t2->digits)
+                               return -1;
                        return 0;
                case EC_NUM:
                        break;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to