diff options
author | monty@hundin.mysql.fi <> | 2001-08-21 20:06:00 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-08-21 20:06:00 +0300 |
commit | 063a1a6557ad2c501f4da9a47e633fb191ee2e00 (patch) | |
tree | cc0b5646a48d97a66571d12ba2d4c29f6c1059e5 /sql/field.h | |
parent | 301af97d4a1e09ce7da0d8ee63c13210a786891d (diff) | |
download | mariadb-git-063a1a6557ad2c501f4da9a47e633fb191ee2e00.tar.gz |
Portability fixes.
Patches required by Gemini
Fix to properly detect if there is an active transaction in InnoDB
Fix to not lock thread structure when doing automatic rollback when thread ends
Allow -O lower_case_names=0 on UNIX
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index b5d7c613701..ee18d2fa7ae 100644 --- a/sql/field.h +++ b/sql/field.h @@ -874,6 +874,14 @@ public: uint max_length= ~(uint) 0); ulonglong get_id(const char *from); const char *unpack_id(char *to, const char *from, const char *bdata); + inline void get_ptr_from_key_image(char **str,char *key_str) + { + *str = key_str + sizeof(uint16); + } + inline uint get_length_from_key_image(char *key_str) + { + return uint2korr(key_str); + } enum_field_types blobtype() { return (packlength == 1 ? FIELD_TYPE_TINY_BLOB : FIELD_TYPE_BLOB);} #endif char *pack_key(char *to, const char *from, uint max_length); |