Changeset: 9183378c7b5b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9183378c7b5b
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: interval-day-second
Log Message:

Conversions between EC_SEC types are trivial

We see more of them now because we take ->digits into account
when comparing sql_subtypes.


diffs (17 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -1244,7 +1244,12 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                }
                if (!l)
                        return NULL;
-               s = stmt_convert(be, l, (!push&&l->nrcols==0)?NULL:sel, from, 
to);
+               if (from->type->eclass == EC_SEC && to->type->eclass == EC_SEC) 
{
+                       // trivial conversion because EC_SEC is always in 
milliseconds
+                       s = l;
+               } else {
+                       s = stmt_convert(be, l, (!push&&l->nrcols==0)?NULL:sel, 
from, to);
+               }
        }       break;
        case e_func: {
                node *en;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to