summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-11-19 19:58:27 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-19 20:22:33 +0200
commitdde2ca4aa108b611b5fdfc970146b28461ef08bf (patch)
tree08f90bb9d54413af23230ccf99f18391596afa34 /sql/sp_rcontext.cc
parentb5ac863f1494920b5e7035c9dfa0ebfdaa50a15d (diff)
parentfd58bb71e22196c3c5e8d20b92bce6f343f1dea1 (diff)
downloadmariadb-git-dde2ca4aa108b611b5fdfc970146b28461ef08bf.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r--sql/sp_rcontext.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc
index a31631e33ef..e71a529bc07 100644
--- a/sql/sp_rcontext.cc
+++ b/sql/sp_rcontext.cc
@@ -750,33 +750,6 @@ int sp_cursor::open(THD *thd)
}
-/**
- Open the cursor, but do not copy data.
- This method is used to fetch the cursor structure
- to cursor%ROWTYPE routine variables.
- Data copying is suppressed by setting thd->lex->limit_rows_examined to 0.
-*/
-int sp_cursor::open_view_structure_only(THD *thd)
-{
- int res;
- int thd_no_errors_save= thd->no_errors;
- Item *limit_rows_examined= thd->lex->limit_rows_examined; // No data copying
- if (!(thd->lex->limit_rows_examined= new (thd->mem_root) Item_uint(thd, 0)))
- return -1;
- thd->no_errors= true; // Suppress ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT
- DBUG_ASSERT(!thd->killed);
- res= open(thd);
- /*
- The query possibly exited on LIMIT ROWS EXAMINED and set thd->killed.
- Reset it now.
- */
- thd->reset_killed();
- thd->no_errors= thd_no_errors_save;
- thd->lex->limit_rows_examined= limit_rows_examined;
- return res;
-}
-
-
int sp_cursor::close(THD *thd)
{
if (! server_side_cursor)