diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-10-16 19:58:26 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-10-16 19:58:26 +0400 |
commit | f0ccd917cc2643f1f3b4ede4f742f735dfa50552 (patch) | |
tree | 4338d119cdec937cf4940fa680f04b7a3107d4da /sql/structs.h | |
parent | abb5e74df6c9198e403cebf4418d17ab71e23352 (diff) | |
download | mariadb-git-f0ccd917cc2643f1f3b4ede4f742f735dfa50552.tar.gz |
Backport of:
----------------------------------------------------------
revno: 2630.22.11
committer: Konstantin Osipov <konstantin@mysql.com>
branch nick: mysql-6.0-records
timestamp: Mon 2008-08-11 16:40:09 +0400
message:
Move read_record related functions to a new header - records.h
sql/Makefile.am:
Introduce records.h
sql/handler.h:
Forward-declare class handler (an unnecessary forward declaration
was removed from mysql_priv.h).
sql/item_subselect.cc:
Make read_record function naming more consistent.
Assign read_record function at once, no need to defer till
read_first_record invocation.
sql/mysql_priv.h:
Include records.h, previously part of structs.h
sql/records.cc:
Use records.h
sql/sql_select.h:
Update to use new declarations.
sql/structs.h:
Move declarations of READ_RECORD and related functions to records.h
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sql/structs.h b/sql/structs.h index c668b056a99..2c8e1121edc 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -18,6 +18,7 @@ struct TABLE; class Field; +class THD; typedef struct st_date_time_format { uchar positions[8]; @@ -115,30 +116,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 */ - TABLE *table; /* Head-form */ - handler *file; - 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 |