summaryrefslogtreecommitdiff
path: root/include/my_getopt.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-01-31 04:36:58 +0200
committerunknown <monty@hundin.mysql.fi>2002-01-31 04:36:58 +0200
commit83c83a0223664b2937e9522afb47e7c78e6b425f (patch)
treef5fa2405fe86664ded2345a4330fe4b8a31e8666 /include/my_getopt.h
parent85278245af45fc301dc7940bec9a3434003285a6 (diff)
downloadmariadb-git-83c83a0223664b2937e9522afb47e7c78e6b425f.tar.gz
Fixes for new getopt
Bug fix when using --no-deaults Sets ref_length to right value (faster rnd_pos() handling in InnoDB). Fixed problem with multi-table-delete and InnoDB Fixed problem with truncate table, which required a COMMIT before. Fixed multi-table-delete bug with InnoDB. Remove not used index from EXPLAIN Docs/manual.texi: ChangeLog include/my_getopt.h: Removed compiler warnings myisam/myisamchk.c: Fixes for new getopt mysql-test/r/explain.result: Updated test results mysql-test/r/innodb.result: Updated test results mysql-test/r/join.result: Updated test results mysql-test/t/innodb.test: Updated test results mysys/default.c: Bug fix when using --no-defaults mysys/my_getopt.c: Fixes for new getopt sql/ha_innodb.cc: Sets ref_length to right value (faster rnd_pos() handling). Fixed problem with multi-table-delete. Fixed problem with truncate table, which required a COMMIT before. sql/opt_sum.cc: Remove not used index from EXPLAIN sql/sql_cache.cc: Fixed core dump bug when not using query cache sql/sql_select.cc: Remove not used index from EXPLAIN
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r--include/my_getopt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h
index 8321ad4cd1c..a1a052ac8e2 100644
--- a/include/my_getopt.h
+++ b/include/my_getopt.h
@@ -45,3 +45,8 @@ struct my_option
my_bool opt_is_var; /* If true, the option is a variable */
};
+extern int handle_options (int *argc, char ***argv,
+ const struct my_option *longopts,
+ my_bool (*get_one_option)(int,
+ const struct my_option *,
+ char *));