summaryrefslogtreecommitdiff
path: root/sql/gen_lex_hash.cc
diff options
context:
space:
mode:
authorunknown <jcole@tetra.spaceapes.com>2001-03-12 18:16:30 -0600
committerunknown <jcole@tetra.spaceapes.com>2001-03-12 18:16:30 -0600
commitee92b9f634e3ca573ee6c30f87bc8e8714c08827 (patch)
tree873907f6d77f9c15af35e496f4d8ce9d14bf0dcc /sql/gen_lex_hash.cc
parentc6639098152b68b13aa77709e38c76515304381e (diff)
downloadmariadb-git-ee92b9f634e3ca573ee6c30f87bc8e8714c08827.tar.gz
Added SQL_ANSI_MODE.
Docs/manual.texi: Added News section for 3.23.35, and change notes for SQL_ANSI_MODE. sql/gen_lex_hash.cc: Fixed typo. Updated the values, so the parser can be created. sql/mysql_priv.h: Added ``global_state_map'' from sql_lex.cc. sql/sql_class.h: Added ``state_map'' to THD. This is a per-thread state map for lex. sql/sql_lex.cc: Renamed ``state_map'' to ``global_state_map''. Changed yylex() to use the new per-thread state map. sql/sql_parse.cc: Copy global_state_map into thd->state_map on thread start. sql/sql_yacc.yy: Added SQL_ANSI_MODE. Cleaned up some.
Diffstat (limited to 'sql/gen_lex_hash.cc')
-rw-r--r--sql/gen_lex_hash.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/gen_lex_hash.cc b/sql/gen_lex_hash.cc
index 78ffb266366..ca105257f19 100644
--- a/sql/gen_lex_hash.cc
+++ b/sql/gen_lex_hash.cc
@@ -254,7 +254,7 @@ you have to change 'main' to print out the new function\n");
if (write_warning)
fprintf (stderr,"Fatal error when generating hash for symbols\n\
Didn't find suitable values for perfect hashing:\n\
-You have to edit gen_lex_hase.cc to generate a new hashing function.\n\
+You have to edit gen_lex_hash.cc to generate a new hashing function.\n\
You can try running gen_lex_hash with --search to find a suitable value\n\
Symbol array size = %d\n",function_mod);
return -1;
@@ -472,8 +472,10 @@ int main(int argc,char **argv)
int error;
MY_INIT(argv[0]);
- start_value=5315771L; best_t1=6916833L; best_t2=3813748L; best_type=3; /* mode=5839 add=5 type: 0 */
- if (get_options(argc,(char **) argv))
+ start_value=4934807L; best_t1=5181754L; best_t2=1469522L; best_type=0;
+ /* mode=4999 add=7 type: 0 */
+
+ if (get_options(argc,(char **) argv))
exit(1);
make_max_length_table();