summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-05-17 16:45:00 +0300
committerunknown <monty@hundin.mysql.fi>2002-05-17 16:45:00 +0300
commit387e77d104887d45a4574a9bd1b826cfa20f01c1 (patch)
tree138e0662f05b06e5000a3e7e6fa8383eea492a3b /sql/unireg.h
parent66f426c0635d16f7f594f6bf867e13e5cba18500 (diff)
downloadmariadb-git-387e77d104887d45a4574a9bd1b826cfa20f01c1.tar.gz
Optimize LIKE with turbo-boyer-more algoritm
Docs/manual.texi: Added info about LIKE optimization mysql-test/r/func_like.result: Test of new LIKE optimization mysql-test/t/func_like.test: Test of new LIKE optimization
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index c4d2052d1da..5a61f4a6c12 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -122,6 +122,13 @@ bfill((A)->null_flags,(A)->null_bytes,255);\
#define TE_INFO_LENGTH 3
#define MTYP_NOEMPTY_BIT 128
+/*
+ * Minimum length pattern before Turbo Boyer-Moore is used
+ * for SELECT "text" LIKE "%pattern%", excluding the two
+ * wildcards in class Item_func_like.
+ */
+#define MIN_TURBOBM_PATTERN_LEN 3
+
/* Include prototypes for unireg */
#include "mysqld_error.h"