| 1031 | */ |
| 1032 | |
| 1033 | SQL_HANDLER *mysql_ha_read_prepare(THD *thd, TABLE_LIST *tables, |
| 1034 | enum enum_ha_read_modes mode, |
| 1035 | const char *keyname, |
| 1036 | List<Item> *key_expr, |
| 1037 | enum ha_rkey_function ha_rkey_mode, |
| 1038 | Item *cond) |
| 1039 | { |
| 1040 | SQL_HANDLER *handler; |
| 1041 | DBUG_ENTER("mysql_ha_read_prepare"); |
| 1042 | if (!(handler= mysql_ha_find_handler(thd, &tables->alias))) |
| 1043 | DBUG_RETURN(0); |
| 1044 | tables->table= handler->table; // This is used by fix_fields |
| 1045 | handler->table->pos_in_table_list= tables; |
| 1046 | if (mysql_ha_fix_cond_and_key(handler, mode, keyname, key_expr, |
| 1047 | ha_rkey_mode, cond, 1)) |
| 1048 | DBUG_RETURN(0); |
| 1049 | DBUG_RETURN(handler); |
| 1050 | } |
| 1051 | |
| 1052 | |
| 1053 |
no test coverage detected