summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-11-18 13:47:27 +0200
committermonty@mashka.mysql.fi <>2003-11-18 13:47:27 +0200
commitcab1dc628c116f042a3fd8dbc505f7ca2df599a3 (patch)
tree0a23d90c946c5f05a8c160fc7c6ef3f05505fc79 /sql/table.h
parentf277c9f88a4a2e392e44cfdb6b3f4785b6c730d0 (diff)
downloadmariadb-git-cab1dc628c116f042a3fd8dbc505f7ca2df599a3.tar.gz
CLIENT_MULTI_QUERIES -> CLIENT_MULTI_STATEMENTS
New multi-key-cache handling. This was needed becasue the old one didn't work reliable with MERGE tables. ALTER TABLE table_name ... CHARACTER SET ... now changes all char/varchar/text columns to the given character set (One must use ALTER TABLE ... DEFAULT CHARACTER SET ... to change the default character set) Fixed that have_compress is detected properly (fixes problems with func_compress.test on platforms without zlib) New syntax for CACHE INDEX ('keys' is optional if no index name is given and one mentions the key cache name only ones) Removed compiler warnings Added mysql_set_server_option() to allow clients like PHP to easaily set/reset the multi-statement flag.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/sql/table.h b/sql/table.h
index b9c6a72bb09..4dcd24b2aff 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -56,30 +56,6 @@ typedef struct st_filesort_info
} FILESORT_INFO;
-/* Table key cache assignment descriptor */
-/*
- In future the similar structure is to be used for
- an assignment of an index to a key cache: the index name will be added.
- The name of the database catalog will be added as well.
- The descriptors for the current assignments are put in the
- assignment cache: assign_cache. If a table is not found in the cache
- it is considered assigned to the default key cache.
-*/
-typedef struct st_key_cache_asmt
-{
- char *db_name; /* db the table belongs to */
- char *table_name; /* the name of the table */
- char *table_key; /* key for the assignment cache */
- uint key_length; /* the length of this key */
- struct st_key_cache_var *key_cache; /* reference to the key cache */
- struct st_key_cache_asmt **prev; /* links in the chain all assignments */
- struct st_key_cache_asmt *next; /* to this cache */
- struct st_my_thread_var *queue; /* queue of requests for assignment */
- uint requests; /* number of current requests */
- bool to_reassign; /* marked when reassigning all cache */
- bool triggered; /* marked when assignment is triggered*/
-} KEY_CACHE_ASMT;
-
/* Table cache entry struct */
class Field_timestamp;
@@ -87,13 +63,11 @@ class Field_blob;
struct st_table {
handler *file;
- KEY_CACHE_VAR *key_cache; /* Ref to the key cache the table assigned to*/
- KEY_CACHE_ASMT *key_cache_asmt;/* Only when opened for key cache assignment */
- Field **field; /* Pointer to fields */
+ Field **field; /* Pointer to fields */
Field_blob **blob_field; /* Pointer to blob fields */
HASH name_hash; /* hash of field names */
byte *record[2]; /* Pointer to records */
- byte *default_values; /* Record with default values for INSERT */
+ byte *default_values; /* Default values for INSERT */
byte *insert_values; /* used by INSERT ... UPDATE */
uint fields; /* field count */
uint reclength; /* Recordlength */