Re: Crash in IN subselect with ORDER BY clause

Re: Crash in IN subselect with ORDER BY clause

am 28.11.2002 22:09:33 von Sanja Byelkin

Hi!

On Thu, Nov 28, 2002 at 11:39:00PM -0000, Jocelyn Fournier wrote:
> Hi,
>
> How-to-repeat :
>
> SELECT * FROM (SELECT 1 as id) WHERE id IN (SELECT * FROM (SELECT 1 as id)
> ORDER BY id LIMIT 1);
> ERROR 2013: Lost connection to MySQL server during query

Thank you for bug report. This bug is fixed (patch is commited & pushed).

> BTW, LIMIT seems to have no effect inside subselect IN.

hmm... Yes it should be. I will think what we can do with it...

[skip]

--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Oleksandr Byelkin
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Lugansk, Ukraine
<___/ www.mysql.com

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13147@lists.mysql.com
To unsubscribe, e-mail

Crash in IN subselect with ORDER BY clause

am 29.11.2002 00:39:00 von Jocelyn Fournier

Hi,

How-to-repeat :

SELECT * FROM (SELECT 1 as id) WHERE id IN (SELECT * FROM (SELECT 1 as id)
ORDER BY id LIMIT 1);
ERROR 2013: Lost connection to MySQL server during query

BTW, LIMIT seems to have no effect inside subselect IN.

Stack trace :

0x80a1dd1 handle_segfault + 481
0x828c758 pthread_sighandler + 176
0x8281765 my_strcasecmp_8bit + 21
0x80c5914 find_item_in_list(Item*, List&, find_item_error_report_type)
+ 324
0x80d2aa1 find_order_in_list(THD*, st_table_list*, st_order*, List&,
List&) + 65
0x80ca831 JOIN::prepare(st_table_list*, Item*, st_order*, st_order*, Item*,
st_order*, st_select_lex*, st_select_lex_unit*, bool) + 353
0x80861fd subselect_single_select_engine::prepare() + 157
0x8085135 Item_subselect::fix_fields(THD*, st_table_list*, Item**) + 37
0x80c66e2 setup_conds(THD*, st_table_list*, Item**) + 1634
0x80ca7fe JOIN::prepare(st_table_list*, Item*, st_order*, st_order*, Item*,
st_order*, st_select_lex*, st_select_lex_unit*, bool) + 302
0x80cc9fa mysql_select(THD*, st_table_list*, List&, Item*, st_order*,
st_order*, Item*, st_order*, unsigned long, select_result*,
st_select_lex_unit*, st_select_lex*) + 442
0x80ca67c handle_select(THD*, st_lex*, select_result*) + 252
0x80ae503 mysql_execute_command(THD*) + 643
0x80b3248 mysql_parse(THD*, char*, unsigned) + 152
0x80ad3d4 dispatch_command(enum_server_command, THD*, char*, unsigned) + 852
0x80ad066 do_command(THD*) + 118
0x80ac94e handle_one_connection + 910
0x828a17a pthread_start_thread + 218
0x82be49a thread_start + 4

Regards,
Jocelyn


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13135@lists.mysql.com
To unsubscribe, e-mail