summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <hery.ramilison@oracle.com>2011-03-16 15:11:20 +0100
committerMySQL Build Team <build@mysql.com>2011-03-16 15:11:20 +0100
commit753c406994b348e65f6d099096178e457628e475 (patch)
tree3b31ba86b07ae94f5ca16e551fc8157d0188b2ab /include
parent62e83ad8c074b4a9c937760daf705b02c5d85e8b (diff)
parentfe12c639b1eae3fe42664f3817a2677795826888 (diff)
downloadmariadb-git-753c406994b348e65f6d099096178e457628e475.tar.gz
Merge from mysql-5.5.10-release
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h.pp2
-rw-r--r--include/typelib.h14
2 files changed, 13 insertions, 3 deletions
diff --git a/include/mysql.h.pp b/include/mysql.h.pp
index 0a5c3d83148..169a8b30e2b 100644
--- a/include/mysql.h.pp
+++ b/include/mysql.h.pp
@@ -227,7 +227,7 @@ typedef struct st_typelib {
extern my_ulonglong find_typeset(char *x, TYPELIB *typelib,int *error_position);
extern int find_type_or_exit(const char *x, TYPELIB *typelib,
const char *option);
-extern int find_type(char *x, const TYPELIB *typelib, unsigned int full_name);
+extern int find_type(const char *x, const TYPELIB *typelib, unsigned int flags);
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,unsigned int nr);
extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);
diff --git a/include/typelib.h b/include/typelib.h
index 3badb14c96e..00dbafea34e 100644
--- a/include/typelib.h
+++ b/include/typelib.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 MySQL AB
+/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,7 +29,17 @@ typedef struct st_typelib { /* Different types saved here */
extern my_ulonglong find_typeset(char *x, TYPELIB *typelib,int *error_position);
extern int find_type_or_exit(const char *x, TYPELIB *typelib,
const char *option);
-extern int find_type(char *x, const TYPELIB *typelib, unsigned int full_name);
+#define FIND_TYPE_BASIC 0
+/** makes @c find_type() require the whole name, no prefix */
+#define FIND_TYPE_NO_PREFIX (1 << 0)
+/** always implicitely on, so unused, but old code may pass it */
+#define FIND_TYPE_NO_OVERWRITE (1 << 1)
+/** makes @c find_type() accept a number */
+#define FIND_TYPE_ALLOW_NUMBER (1 << 2)
+/** makes @c find_type() treat ',' as terminator */
+#define FIND_TYPE_COMMA_TERM (1 << 3)
+
+extern int find_type(const char *x, const TYPELIB *typelib, unsigned int flags);
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,unsigned int nr);
extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);