Changeset: 4337427c196a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4337427c196a
Modified Files:
        sql/server/rel_select.c
Branch: Jun2020
Log Message:

Missing have_hge check


diffs (20 lines):

diff --git a/sql/server/rel_select.c b/sql/server/rel_select.c
--- a/sql/server/rel_select.c
+++ b/sql/server/rel_select.c
@@ -3748,14 +3748,14 @@ static sql_exp *
                else if (list_length(l) <= 63)
                        tpe = sql_bind_localtype("lng");
 #ifdef HAVE_HGE
-               else if (list_length(l) <= 127)
+               else if (have_hge && list_length(l) <= 127)
                        tpe = sql_bind_localtype("hge");
 #endif
                else
                        return sql_error(sql, 02, SQLSTATE(42000) "SELECT: 
GROUPING the number of grouping columns is larger"
                                                                " than the 
maximum number of representable bits from this server (%d > %d)", 
list_length(l),
 #ifdef HAVE_HGE
-                                                        127
+                                                       have_hge ? 127 : 63
 #else
                                                         63
 #endif
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to