[MDEV-6062] MySQL BUG#11748187 - 35410: STORED FUNCTION: CONFUSING 'ORDER CLAUSE' IN ERROR MESSAGE Created: 2014-04-10  Updated: 2022-09-08

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.9
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Sergey Vojtovich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-4784 merge test cases from 5.6 Stalled

 Description   

revno: 3402.31.20
committer: Raghav Kapoor <raghav.kapoor@oracle.com>
branch nick: mysql-trunk-bug-11748187
timestamp: Fri 2011-12-09 12:25:51 +0530
message:
  BUG#11748187 - 35410: STORED FUNCTION: CONFUSING 'ORDER CLAUSE' IN ERROR MESSAGE
 
  BACKGROUND:
  A stored function is created that refers in the body to an
  identifier that cannot be resolved. The error message produced
  by invoking the function says something about 'order clause'.
  The function has no ORDER BY clause, nor is it invoked within
  a statement that has an ORDER BY clause.
  The error message is confusing.
 
  FIX:
  This bug has been fixed by explicitly resetting THD::where
  value to its default in sp_head::execute_function in sp_head.cc
  file. Also a test case has been written in sp.test and the
  corresponding result file has also been updated.


Generated at Thu Feb 08 07:09:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.