[MDEV-2594] LP:685411 - Assertion `thd' failed for subquery errors Created: 2010-12-05  Updated: 2015-02-02  Resolved: 2012-10-04

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

Type: Bug Priority: Major
Reporter: sbester Assignee: Timour Katchaounov (Inactive)
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug685411.xml    

 Description   

run on debug build:

explain extended select 1 from dual where `a`=(select 1);

Version: '5.3.0-MariaDB-alpha-valgrind-max-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution
mysqld: sql_select.cc:19197: void st_select_lex::print(THD*, String*, enum_query_type): Assertion `thd' failed.

regards,
sbester



 Comments   
Comment by sbester [ 2010-12-05 ]

Re: Assertion `thd' failed for subquery errors
probably a known issue:

19194 void st_select_lex::print(THD *thd, String *str, enum_query_type query_type)
19195 {
19196 /* TODO: thd may not be set for sub queries, but this should be fixed */
19197 DBUG_ASSERT(thd);
19198 if (!thd)
19199 thd= current_thd;

Comment by Rasmus Johansson (Inactive) [ 2010-12-14 ]

Launchpad bug id: 685411

Generated at Thu Feb 08 06:42:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.