diff options
author | bell@sanja.is.com.ua <> | 2004-07-16 01:15:55 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-07-16 01:15:55 +0300 |
commit | 9336d36cf81f404088844fc31918887799d3da03 (patch) | |
tree | 7a8e815ca26d9138de3bc77a619aa8103e037911 /sql/sql_handler.cc | |
parent | 2fd11169ab10b8d752afbcc2dd58a15cf4de9c45 (diff) | |
download | mariadb-git-9336d36cf81f404088844fc31918887799d3da03.tar.gz |
VIEW
two TABLE_LIST copy eliminated
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 538ca3fd1f0..8d06d3f0017 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -166,7 +166,7 @@ int mysql_ha_close_list(THD *thd, TABLE_LIST *tables, bool flushed) if (tables) { - for (tl_item= tables ; tl_item; tl_item= tl_item->next) + for (tl_item= tables ; tl_item; tl_item= tl_item->next_local) { mysql_ha_close(thd, tl_item, /*dont_send_ok*/ 1, /*dont_lock*/ 1, /*no_alias*/ 1); @@ -249,7 +249,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables, it++; // Skip first NULL field - insert_fields(thd,tables,tables->db,tables->alias,&it); + insert_fields(thd, tables, tables->db, tables->alias, &it, 0); select_limit+=offset_limit; protocol->send_fields(&list,1); |