diff options
author | unknown <monty@mysql.com> | 2004-02-16 10:31:05 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-02-16 10:31:05 +0200 |
commit | 0c259c54b062f065e375fa185556cdf7fd419c13 (patch) | |
tree | e792af64f95eba198633387e3b36f50f096c3001 /include | |
parent | 70eef0cb05296b7c60c7dbc32811d306675e997a (diff) | |
parent | d00fbce3083f11d071300447e11dab124debb2b7 (diff) | |
download | mariadb-git-0c259c54b062f065e375fa185556cdf7fd419c13.tar.gz |
Merge with public tree
client/mysqldump.c:
Auto merged
configure.in:
Auto merged
include/m_ctype.h:
Auto merged
include/m_string.h:
Auto merged
include/my_global.h:
Auto merged
mysql-test/r/ctype_utf8.result:
Auto merged
mysql-test/r/fulltext.result:
Auto merged
mysql-test/r/subselect.result:
Auto merged
mysql-test/t/fulltext.test:
Auto merged
mysql-test/t/grant.test:
Auto merged
mysql-test/t/subselect.test:
Auto merged
mysql-test/t/union.test:
Auto merged
sql/field.cc:
Auto merged
sql/field.h:
Auto merged
sql/item.cc:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/set_var.cc:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/share/english/errmsg.txt:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_show.cc:
Auto merged
sql/sql_string.cc:
Auto merged
sql/sql_table.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
strings/ctype-mb.c:
Auto merged
strings/ctype-simple.c:
Auto merged
mysql-test/r/warnings.result:
Fix error numbers after merge
sql/share/czech/errmsg.txt:
Add missing ',' and fix typo
sql/share/danish/errmsg.txt:
Add missing ',' and fix typo
sql/share/dutch/errmsg.txt:
Add missing ',' and fix typo
sql/share/estonian/errmsg.txt:
Add missing ',' and fix typo
sql/share/french/errmsg.txt:
Add missing ',' and fix typo
sql/share/german/errmsg.txt:
Add missing ',' and fix typo
sql/share/greek/errmsg.txt:
Add missing ',' and fix typo
sql/share/hungarian/errmsg.txt:
Add missing ',' and fix typo
sql/share/italian/errmsg.txt:
Add missing ',' and fix typo
sql/share/japanese/errmsg.txt:
Add missing ',' and fix typo
sql/share/korean/errmsg.txt:
Add missing ',' and fix typo
sql/share/norwegian-ny/errmsg.txt:
Add missing ',' and fix typo
sql/share/norwegian/errmsg.txt:
Add missing ',' and fix typo
sql/share/polish/errmsg.txt:
Add missing ',' and fix typo
sql/share/portuguese/errmsg.txt:
Add missing ',' and fix typo
sql/share/romanian/errmsg.txt:
Add missing ',' and fix typo
sql/share/russian/errmsg.txt:
Add missing ',' and fix typo
sql/share/slovak/errmsg.txt:
Add missing ',' and fix typo
sql/share/spanish/errmsg.txt:
Add missing ',' and fix typo
sql/share/swedish/errmsg.txt:
Add missing ',' and fix typo
sql/share/ukrainian/errmsg.txt:
Add missing ',' and fix typo
Diffstat (limited to 'include')
-rw-r--r-- | include/heap.h | 1 | ||||
-rw-r--r-- | include/m_ctype.h | 5 | ||||
-rw-r--r-- | include/m_string.h | 2 | ||||
-rw-r--r-- | include/my_global.h | 2 | ||||
-rw-r--r-- | include/my_pthread.h | 5 | ||||
-rw-r--r-- | include/my_sys.h | 2 | ||||
-rw-r--r-- | include/myisam.h | 2 | ||||
-rw-r--r-- | include/mysqld_error.h | 107 |
8 files changed, 69 insertions, 57 deletions
diff --git a/include/heap.h b/include/heap.h index 3702d88ac70..c5f2be81fb7 100644 --- a/include/heap.h +++ b/include/heap.h @@ -138,6 +138,7 @@ typedef struct st_heap_info TREE_ELEMENT *parents[MAX_TREE_HEIGHT+1]; TREE_ELEMENT **last_pos; uint lastkey_len; + my_bool implicit_emptied; #ifdef THREAD THR_LOCK_DATA lock; #endif diff --git a/include/m_ctype.h b/include/m_ctype.h index 9c843382fc7..5870458af56 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -111,7 +111,7 @@ typedef struct my_collation_handler_st uchar *, uint, const uchar *, uint); my_bool (*like_range)(struct charset_info_st *, const char *s, uint s_length, - int w_prefix, int w_one, int w_many, + pchar w_prefix, pchar w_one, pchar w_many, uint res_length, char *min_str, char *max_str, uint *min_len, uint *max_len); @@ -300,7 +300,7 @@ void my_fill_8bit(CHARSET_INFO *cs, char* to, uint l, int fill); my_bool my_like_range_simple(CHARSET_INFO *cs, const char *ptr, uint ptr_length, - int escape, int w_one, int w_many, + pbool escape, pbool w_one, pbool w_many, uint res_length, char *min_str, char *max_str, uint *min_length, uint *max_length); @@ -381,6 +381,7 @@ extern my_bool my_parse_charset_xml(const char *bug, uint len, #define my_isvar(s,c) (my_isalnum(s,c) || (c) == '_') #define my_isvar_start(s,c) (my_isalpha(s,c) || (c) == '_') +#define my_binary_compare(s) ((s)->state & MY_CS_BINSORT) #define use_strnxfrm(s) ((s)->state & MY_CS_STRNXFRM) #define my_strnxfrm(s, a, b, c, d) ((s)->coll->strnxfrm((s), (a), (b), (c), (d))) #define my_strnncoll(s, a, b, c, d) ((s)->coll->strnncoll((s), (a), (b), (c), (d))) diff --git a/include/m_string.h b/include/m_string.h index ac2aae37704..21aa736acd4 100644 --- a/include/m_string.h +++ b/include/m_string.h @@ -126,7 +126,7 @@ extern void bmove_align(gptr dst,const gptr src,uint len); #include <assert.h> #define memcpy_overlap(A,B,C) \ DBUG_ASSERT((A) == (B) || ((A)+(C)) <= (B) || ((B)+(C)) <= (A)); \ -bmove((byte*) key,(byte*) from,(size_t) length); +bmove((byte*) (A),(byte*) (B),(size_t) (C)); #else #define memcpy_overlap(A,B,C) memcpy((A), (B), (C)) #endif /* HAVE_purify */ diff --git a/include/my_global.h b/include/my_global.h index 41e3636116a..4a1786f70e2 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -293,7 +293,9 @@ C_MODE_END #ifndef CONFIG_SMP #define CONFIG_SMP #endif +C_MODE_START #include <asm/atomic.h> +C_MODE_END #endif #include <errno.h> /* Recommended by debian */ /* We need the following to go around a problem with openssl on solaris */ diff --git a/include/my_pthread.h b/include/my_pthread.h index cf04d078c70..602a4439575 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -392,6 +392,11 @@ struct tm *gmtime_r(const time_t *clock, struct tm *res); #define pthread_condattr_destroy pthread_condattr_delete #endif +/* FSU THREADS */ +#if !defined(HAVE_PTHREAD_KEY_DELETE) && !defined(pthread_key_delete) +#define pthread_key_delete(A) pthread_dummy(0) +#endif + #ifdef HAVE_CTHREADS_WRAPPER /* For MacOSX */ #define pthread_cond_destroy(A) pthread_dummy(0) #define pthread_mutex_destroy(A) pthread_dummy(0) diff --git a/include/my_sys.h b/include/my_sys.h index 7927192848a..d3e69a61962 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -730,6 +730,8 @@ extern void init_alloc_root(MEM_ROOT *mem_root, uint block_size, extern gptr alloc_root(MEM_ROOT *mem_root,unsigned int Size); extern void free_root(MEM_ROOT *root, myf MyFLAGS); extern void set_prealloc_root(MEM_ROOT *root, char *ptr); +extern void reset_root_defaults(MEM_ROOT *mem_root, uint block_size, + uint prealloc_size); extern char *strdup_root(MEM_ROOT *root,const char *str); extern char *strmake_root(MEM_ROOT *root,const char *str,uint len); extern char *memdup_root(MEM_ROOT *root,const char *str,uint len); diff --git a/include/myisam.h b/include/myisam.h index 2285f996464..f4ef4695016 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -93,7 +93,7 @@ typedef struct st_mi_isaminfo /* Struct from h_info */ typedef struct st_mi_create_info { - char *index_file_name, *data_file_name; /* If using symlinks */ + const char *index_file_name, *data_file_name; /* If using symlinks */ ha_rows max_rows; ha_rows reloc_rows; ulonglong auto_increment; diff --git a/include/mysqld_error.h b/include/mysqld_error.h index fbf89bdb3e1..494f19aa7bd 100644 --- a/include/mysqld_error.h +++ b/include/mysqld_error.h @@ -254,56 +254,57 @@ #define ER_NOT_SUPPORTED_YET 1235 #define ER_MASTER_FATAL_ERROR_READING_BINLOG 1236 #define ER_SLAVE_IGNORED_TABLE 1237 -#define ER_WRONG_FK_DEF 1238 -#define ER_KEY_REF_DO_NOT_MATCH_TABLE_REF 1239 -#define ER_OPERAND_COLUMNS 1240 -#define ER_SUBQUERY_NO_1_ROW 1241 -#define ER_UNKNOWN_STMT_HANDLER 1242 -#define ER_CORRUPT_HELP_DB 1243 -#define ER_CYCLIC_REFERENCE 1244 -#define ER_AUTO_CONVERT 1245 -#define ER_ILLEGAL_REFERENCE 1246 -#define ER_DERIVED_MUST_HAVE_ALIAS 1247 -#define ER_SELECT_REDUCED 1248 -#define ER_TABLENAME_NOT_ALLOWED_HERE 1249 -#define ER_NOT_SUPPORTED_AUTH_MODE 1250 -#define ER_SPATIAL_CANT_HAVE_NULL 1251 -#define ER_COLLATION_CHARSET_MISMATCH 1252 -#define ER_SLAVE_WAS_RUNNING 1253 -#define ER_SLAVE_WAS_NOT_RUNNING 1254 -#define ER_TOO_BIG_FOR_UNCOMPRESS 1255 -#define ER_ZLIB_Z_MEM_ERROR 1256 -#define ER_ZLIB_Z_BUF_ERROR 1257 -#define ER_ZLIB_Z_DATA_ERROR 1258 -#define ER_CUT_VALUE_GROUP_CONCAT 1259 -#define ER_WARN_TOO_FEW_RECORDS 1260 -#define ER_WARN_TOO_MANY_RECORDS 1261 -#define ER_WARN_NULL_TO_NOTNULL 1262 -#define ER_WARN_DATA_OUT_OF_RANGE 1263 -#define ER_WARN_DATA_TRUNCATED 1264 -#define ER_WARN_USING_OTHER_HANDLER 1265 -#define ER_CANT_AGGREGATE_2COLLATIONS 1266 -#define ER_DROP_USER 1267 -#define ER_REVOKE_GRANTS 1268 -#define ER_CANT_AGGREGATE_3COLLATIONS 1269 -#define ER_CANT_AGGREGATE_NCOLLATIONS 1270 -#define ER_VARIABLE_IS_NOT_STRUCT 1271 -#define ER_UNKNOWN_COLLATION 1272 -#define ER_SLAVE_IGNORED_SSL_PARAMS 1273 -#define ER_SERVER_IS_IN_SECURE_AUTH_MODE 1274 -#define ER_WARN_FIELD_RESOLVED 1275 -#define ER_BAD_SLAVE_UNTIL_COND 1276 -#define ER_MISSING_SKIP_SLAVE 1277 -#define ER_UNTIL_COND_IGNORED 1278 -#define ER_WRONG_NAME_FOR_INDEX 1279 -#define ER_WRONG_NAME_FOR_CATALOG 1280 -#define ER_WARN_QC_RESIZE 1281 -#define ER_BAD_FT_COLUMN 1282 -#define ER_UNKNOWN_KEY_CACHE 1283 -#define ER_WARN_HOSTNAME_WONT_WORK 1284 -#define ER_UNKNOWN_STORAGE_ENGINE 1285 -#define ER_WARN_DEPRECATED_SYNTAX 1286 -#define ER_NON_UPDATABLE_TABLE 1287 -#define ER_FEATURE_DISABLED 1288 -#define ER_SKIP_GRANT_TABLES 1289 -#define ER_ERROR_MESSAGES 290 +#define ER_INCORRECT_GLOBAL_LOCAL_VAR 1238 +#define ER_WRONG_FK_DEF 1239 +#define ER_KEY_REF_DO_NOT_MATCH_TABLE_REF 1240 +#define ER_OPERAND_COLUMNS 1241 +#define ER_SUBQUERY_NO_1_ROW 1242 +#define ER_UNKNOWN_STMT_HANDLER 1243 +#define ER_CORRUPT_HELP_DB 1244 +#define ER_CYCLIC_REFERENCE 1245 +#define ER_AUTO_CONVERT 1246 +#define ER_ILLEGAL_REFERENCE 1247 +#define ER_DERIVED_MUST_HAVE_ALIAS 1248 +#define ER_SELECT_REDUCED 1249 +#define ER_TABLENAME_NOT_ALLOWED_HERE 1250 +#define ER_NOT_SUPPORTED_AUTH_MODE 1251 +#define ER_SPATIAL_CANT_HAVE_NULL 1252 +#define ER_COLLATION_CHARSET_MISMATCH 1253 +#define ER_SLAVE_WAS_RUNNING 1254 +#define ER_SLAVE_WAS_NOT_RUNNING 1255 +#define ER_TOO_BIG_FOR_UNCOMPRESS 1256 +#define ER_ZLIB_Z_MEM_ERROR 1257 +#define ER_ZLIB_Z_BUF_ERROR 1258 +#define ER_ZLIB_Z_DATA_ERROR 1259 +#define ER_CUT_VALUE_GROUP_CONCAT 1260 +#define ER_WARN_TOO_FEW_RECORDS 1261 +#define ER_WARN_TOO_MANY_RECORDS 1262 +#define ER_WARN_NULL_TO_NOTNULL 1263 +#define ER_WARN_DATA_OUT_OF_RANGE 1264 +#define ER_WARN_DATA_TRUNCATED 1265 +#define ER_WARN_USING_OTHER_HANDLER 1266 +#define ER_CANT_AGGREGATE_2COLLATIONS 1267 +#define ER_DROP_USER 1268 +#define ER_REVOKE_GRANTS 1269 +#define ER_CANT_AGGREGATE_3COLLATIONS 1270 +#define ER_CANT_AGGREGATE_NCOLLATIONS 1271 +#define ER_VARIABLE_IS_NOT_STRUCT 1272 +#define ER_UNKNOWN_COLLATION 1273 +#define ER_SLAVE_IGNORED_SSL_PARAMS 1274 +#define ER_SERVER_IS_IN_SECURE_AUTH_MODE 1275 +#define ER_WARN_FIELD_RESOLVED 1276 +#define ER_BAD_SLAVE_UNTIL_COND 1277 +#define ER_MISSING_SKIP_SLAVE 1278 +#define ER_UNTIL_COND_IGNORED 1279 +#define ER_WRONG_NAME_FOR_INDEX 1280 +#define ER_WRONG_NAME_FOR_CATALOG 1281 +#define ER_WARN_QC_RESIZE 1282 +#define ER_BAD_FT_COLUMN 1283 +#define ER_UNKNOWN_KEY_CACHE 1284 +#define ER_WARN_HOSTNAME_WONT_WORK 1285 +#define ER_UNKNOWN_STORAGE_ENGINE 1286 +#define ER_WARN_DEPRECATED_SYNTAX 1287 +#define ER_NON_UPDATABLE_TABLE 1288 +#define ER_FEATURE_DISABLED 1289 +#define ER_SKIP_GRANT_TABLES 1290 +#define ER_ERROR_MESSAGES 291 |