diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-11-03 12:37:02 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-11-03 12:37:02 +0100 |
commit | fc863ba96f9772dc01ffcdf0a394f4165c8df83b (patch) | |
tree | 850f4bb2579f83fce380d670e77b4af5532c6bfd /sql/structs.h | |
parent | 1daca0f9d79797be0149c6260e02dfcc655afffc (diff) | |
parent | 76256e887507d71e96ac120c18aa18c1e28b3262 (diff) | |
download | mariadb-git-fc863ba96f9772dc01ffcdf0a394f4165c8df83b.tar.gz |
Merge
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/sql/structs.h b/sql/structs.h index bcda7b1e787..33b7148c4b3 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -19,8 +19,9 @@ /* The old structures from unireg */ -struct st_table; +struct TABLE; class Field; +class THD; typedef struct st_date_time_format { uchar positions[8]; @@ -100,7 +101,7 @@ typedef struct st_key { union { int bdb_return_if_eq; } handler; - struct st_table *table; + TABLE *table; } KEY; @@ -118,30 +119,6 @@ typedef struct st_reginfo { /* Extra info about reg */ } REGINFO; -struct st_read_record; /* For referense later */ -class SQL_SELECT; -class THD; -class handler; - -typedef struct st_read_record { /* Parameter to read_record */ - struct st_table *table; /* Head-form */ - handler *file; - struct st_table **forms; /* head and ref forms */ - int (*read_record)(struct st_read_record *); - THD *thd; - SQL_SELECT *select; - uint cache_records; - uint ref_length,struct_length,reclength,rec_cache_size,error_offset; - uint index; - uchar *ref_pos; /* pointer to form->refpos */ - uchar *record; - uchar *rec_buf; /* to read field values after filesort */ - uchar *cache,*cache_pos,*cache_end,*read_positions; - IO_CACHE *io_cache; - bool print_error, ignore_not_found_rows; -} READ_RECORD; - - /* Originally MySQL used MYSQL_TIME structure inside server only, but since 4.1 it's exported to user in the new client API. Define aliases for |