From 8aebd44e0ea9c4ae6f573f1ece27b276452122b8 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 11 Mar 2012 14:39:20 +0200 Subject: Implementation of MDEV-28 LIMIT ROWS EXAMINED https://mariadb.atlassian.net/browse/MDEV-28 This task implements a new clause LIMIT ROWS EXAMINED as an extention to the ANSI LIMIT clause. This extension allows to limit the number of rows and/or keys a query would access (read and/or write) during query execution. --- sql/sql_insert.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_insert.cc') diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index a4943d5e13a..88702317513 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -3280,6 +3280,8 @@ int select_insert::send_data(List &values) unit->offset_limit_cnt--; DBUG_RETURN(0); } + if (thd->killed == ABORT_QUERY) + DBUG_RETURN(0); thd->count_cuted_fields= CHECK_FIELD_WARN; // Calculate cuted fields store_values(values); -- cgit v1.2.1