MCPcopy Create free account
hub / github.com/MariaDB/server / mysql_ha_read_prepare

Function mysql_ha_read_prepare

sql/sql_handler.cc:1033–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031*/
1032
1033SQL_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

Callers 1

mysql_test_handler_readFunction · 0.85

Calls 2

mysql_ha_find_handlerFunction · 0.85

Tested by

no test coverage detected