summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-02-07 18:13:57 +0200
committermonty@mysql.com <>2005-02-07 18:13:57 +0200
commit32f91f48e8ac3a7ea998ec9cdf7d1c53b714250c (patch)
tree3fa14495db5e1376fa69b1a6f662a5e7afdc82da /sql/unireg.h
parente7450d9781781666503837d748cf313e3f406f59 (diff)
downloadmariadb-git-32f91f48e8ac3a7ea998ec9cdf7d1c53b714250c.tar.gz
Fixed bug in HAVING when refering to RAND() through alias
(BUG 8216)
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 4ab2ba26b15..70df9a89c8f 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -72,6 +72,8 @@
#define PARAM_TABLE_BIT (((table_map) 1) << (sizeof(table_map)*8-3))
#define OUTER_REF_TABLE_BIT (((table_map) 1) << (sizeof(table_map)*8-2))
#define RAND_TABLE_BIT (((table_map) 1) << (sizeof(table_map)*8-1))
+#define PSEUDO_TABLE_BITS (PARAM_TABLE_BIT | OUTER_REF_TABLE_BIT | \
+ RAND_TABLE_BIT)
#define MAX_FIELDS 4096 /* Limit in the .frm file */
#define MAX_SORT_MEMORY (2048*1024-MALLOC_OVERHEAD)