mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
14b2f454cf
innobase_col_to_mysql(): New function, adapted from row_sel_field_store_in_mysql_format(). innobase_rec_to_mysql(): Correct the function comment, which was still saying "clustered index record", although we can convert any record. Make use of innobase_col_to_mysql(). Always call field->reset(), so that innobase_col_to_mysql() will not have to pad anything.
25 lines
715 B
C
25 lines
715 B
C
/******************************************************
|
|
Smart ALTER TABLE
|
|
|
|
(c) 2005-2007 Innobase Oy
|
|
*******************************************************/
|
|
|
|
/*****************************************************************
|
|
Copies an InnoDB record to table->record[0]. */
|
|
|
|
void
|
|
innobase_rec_to_mysql(
|
|
/*==================*/
|
|
TABLE* table, /* in/out: MySQL table */
|
|
const rec_t* rec, /* in: record */
|
|
const dict_index_t* index, /* in: index */
|
|
const ulint* offsets); /* in: rec_get_offsets(
|
|
rec, index, ...) */
|
|
|
|
/*****************************************************************
|
|
Resets table->record[0]. */
|
|
|
|
void
|
|
innobase_rec_reset(
|
|
/*===============*/
|
|
TABLE* table); /* in/out: MySQL table */
|