summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorgshchepa/uchum@gleb.loc <>2007-08-03 01:58:21 +0500
committergshchepa/uchum@gleb.loc <>2007-08-03 01:58:21 +0500
commitb63f8f8985cf2339d21ff676a5a996286bd6c5f6 (patch)
tree47296516b38e3c9b2c7c5042a7374083dfbb1207 /sql/unireg.h
parent120866c2737f55227d706b54959f50f83c387932 (diff)
downloadmariadb-git-b63f8f8985cf2339d21ff676a5a996286bd6c5f6.tar.gz
Fixed bug #27352.
The SELECT query with more than 31 nested dependent SELECT queries returned wrong result. New error message has been added: ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT. It will be reported as: "Too high level of nesting for select".
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index 81ca18c1d32..d8301060cc4 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -81,6 +81,8 @@
RAND_TABLE_BIT)
#define MAX_FIELDS 4096 /* Limit in the .frm file */
+#define MAX_SELECT_NESTING (sizeof(nesting_map)*8-1)
+
#define MAX_SORT_MEMORY (2048*1024-MALLOC_OVERHEAD)
#define MIN_SORT_MEMORY (32*1024-MALLOC_OVERHEAD)