diff options
author | hf@deer.(none) <> | 2003-07-03 20:57:51 +0500 |
---|---|---|
committer | hf@deer.(none) <> | 2003-07-03 20:57:51 +0500 |
commit | dbb95326b0c15ec92be949d24b1998f18eb92147 (patch) | |
tree | d26249584a7ab19505e0e38ce81473b88f0e4a2b /sql/sql_handler.cc | |
parent | b2769e279239cca52c3f264724286b052357ed14 (diff) | |
download | mariadb-git-dbb95326b0c15ec92be949d24b1998f18eb92147.tar.gz |
Proposed fix for #751
Fields in key_expr (mysql_ha_read) wasn't linked to tables.
Hmm. How did it work at all?
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index a98b6c13a00..c80c0444cb5 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -193,6 +193,8 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables, Item *item; for (key_len=0 ; (item=it_ke++) ; key_part++) { + if (item->fix_fields(thd, tables)) + return -1; item->save_in_field(key_part->field, 1); key_len+=key_part->store_length; } |