summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-09-21 02:20:55 +0400
committerunknown <sergefp@mysql.com>2005-09-21 02:20:55 +0400
commit458a4234e4ce764fdc40de8c46bee2a198151fb7 (patch)
tree228be631b98f515cc5b9de76fce599e486857534 /include
parent1818ff1c22b0a9f8029f8fd2f92f4c3296031445 (diff)
parenta2a8216b2061de4cf0c417362aa9436787cca3cb (diff)
downloadmariadb-git-458a4234e4ce764fdc40de8c46bee2a198151fb7.tar.gz
Merge mysql.com:/home/psergey/bk-trees/mysql-4.1
into mysql.com:/home/psergey/mysql-4.1-csc6030-r3 sql/mysqld.cc: Auto merged
Diffstat (limited to 'include')
-rw-r--r--include/myisam.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/myisam.h b/include/myisam.h
index 6d097770646..e276d4efdff 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -311,6 +311,20 @@ typedef struct st_sort_key_blocks /* Used when sorting */
} SORT_KEY_BLOCKS;
+/*
+ MyISAM supports several statistics collection methods. Currently statistics
+ collection method is not stored in MyISAM file and has to be specified for
+ each table analyze/repair operation in MI_CHECK::stats_method.
+*/
+
+typedef enum
+{
+ /* Treat NULLs as inequal when collecting statistics (default for 4.1/5.0) */
+ MI_STATS_METHOD_NULLS_NOT_EQUAL,
+ /* Treat NULLs as equal when collecting statistics (like 4.0 did) */
+ MI_STATS_METHOD_NULLS_EQUAL
+} enum_mi_stats_method;
+
typedef struct st_mi_check_param
{
ulonglong auto_increment_value;
@@ -341,6 +355,7 @@ typedef struct st_mi_check_param
void *thd;
char *db_name,*table_name;
char *op_name;
+ enum_mi_stats_method stats_method;
} MI_CHECK;
typedef struct st_sort_ft_buf