Changeset: 272d6813c95d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=272d6813c95d
Modified Files:
        sql/server/rel_exp.c
        sql/test/SQLancer/Tests/sqlancer01.stable.out
Branch: Jun2020
Log Message:

Fix for bug 6684. e_cmp expressions are always bound to the boolean type


diffs (25 lines):

diff --git a/sql/server/rel_exp.c b/sql/server/rel_exp.c
--- a/sql/server/rel_exp.c
+++ b/sql/server/rel_exp.c
@@ -976,7 +976,7 @@ exp_subtype( sql_exp *e )
                return NULL;
        }
        case e_cmp:
-               /* return bit */
+               return sql_bind_localtype("bit");
        case e_psm:
                if (e->tpe.type)
                        return &e->tpe;
diff --git a/sql/test/SQLancer/Tests/sqlancer01.stable.out 
b/sql/test/SQLancer/Tests/sqlancer01.stable.out
--- a/sql/test/SQLancer/Tests/sqlancer01.stable.out
+++ b/sql/test/SQLancer/Tests/sqlancer01.stable.out
@@ -89,6 +89,9 @@ stdout of test 'sqlancer01` in directory
 % int # type
 % 1 # length
 [ NULL ]
+#CREATE TABLE t0 (a1 INT, a2 int, a3 int); --Bug 6884
+#UPDATE t0 SET a2 = (- (- (t0.a1))), a3 = 
(ascii(CAST(ascii('}悂Y8K*韖5<c>^n8_X1X|p(''bX') AS STRING(920)))) WHERE NOT 
(((0.27023923567918073) NOT IN (0.9149447665258329)) = FALSE);
+[ 0    ]
 #ROLLBACK;
 #DROP TABLE tbl_ProductSales;
 #DROP TABLE another_T;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to