From 54b2e1c1bea357ca37ce537e24c6c120a43f5958 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 5 Jul 2018 17:49:44 +0200 Subject: MDEV-16697: Fix difference between 32bit/windows and 64bit systems in allowed select nest level --- sql/sql_const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_const.h') diff --git a/sql/sql_const.h b/sql/sql_const.h index e28a0649f04..be26de872df 100644 --- a/sql/sql_const.h +++ b/sql/sql_const.h @@ -84,7 +84,7 @@ #define MAX_FIELDS 4096 /* Limit in the .frm file */ #define MAX_PARTITIONS 8192 -#define MAX_SELECT_NESTING (sizeof(nesting_map)*8-1) +#define MAX_SELECT_NESTING (SELECT_NESTING_MAP_SIZE - 1) #define MAX_SORT_MEMORY 2048*1024 #define MIN_SORT_MEMORY 1024 -- cgit v1.2.1