konstantin@mysql.com
b99e11c8bd
A fix and a test case for Bug#17843 "Certain stored procedures fail to
...
run at startup"
The server returned an error when trying to execute init-file with a
stored procedure that could return multiple result sets to the client.
A stored procedure can return multiple result sets if it contains
PREPARE, SELECT, SHOW and similar statements.
The fix is to set client_capabilites|=CLIENT_MULTI_RESULTS in
sql_parse.cc:handle_bootstrap(). There is no "client" really, so
nothing is ever sent. This makes init-file feature behave consistently:
the prepared statements that can be called directly in the init-file
can be used in a stored procedure too.
Re-committed the patch originally submitted by Per-Erik after review.
2006-07-04 23:46:15 +04:00
..
2006-05-18 17:10:58 +05:00
2006-06-27 17:16:02 -07:00
2005-09-30 14:03:55 +02:00
2006-06-30 18:14:22 +04:00
2006-06-22 00:29:04 +04:00
2006-06-21 01:14:53 +04:00
2005-10-14 00:04:52 +03:00
2005-05-19 18:56:01 +05:00
2005-06-13 12:41:15 +02:00
2006-06-17 02:57:50 +04:00
2006-04-20 18:23:04 -07:00
2006-01-16 12:17:30 +01:00
2005-11-03 22:42:25 +02:00
2006-05-09 13:31:46 -07:00
2005-08-26 15:56:52 +03:00
2006-06-28 10:11:43 -07:00
2006-06-28 12:18:21 -07:00
2006-03-30 17:14:55 +04:00
2006-02-02 18:17:18 +03:00
2006-06-20 13:43:13 -04:00
2006-04-13 17:22:56 +09:30
2006-04-12 22:05:23 +05:00
2005-07-19 22:21:12 +04:00
2006-05-09 13:31:46 -07:00
2006-05-30 17:10:53 -07:00
2006-06-30 20:07:33 +03:00
2006-06-21 09:36:50 +02:00
2006-04-13 17:22:56 +09:30
2006-06-02 07:26:45 +02:00
2005-06-05 19:38:52 +02:00
2005-05-27 14:15:08 +02:00
2006-03-03 15:32:00 +04:00
2005-08-12 13:54:42 +03:00
2006-06-15 16:24:02 +05:00
2006-06-30 09:26:36 +02:00
2006-06-28 16:28:29 +03:00
2006-04-12 19:31:00 +04:00
2005-08-25 17:34:34 +04:00
2006-06-30 09:26:36 +02:00
2006-06-30 09:26:36 +02:00
2005-10-31 11:54:36 +02:00
2006-06-26 22:32:02 +05:00
2006-04-12 18:30:54 +04:00
2006-04-12 18:30:54 +04:00
2006-06-30 09:26:36 +02:00
2006-06-06 12:51:04 +05:00
2006-05-25 10:39:18 +03:00
2006-05-11 15:30:54 +03:00
2006-06-30 11:11:49 +02:00
2006-04-20 00:42:12 -07:00
2006-06-30 02:03:09 +04:00
2006-06-17 02:11:12 +04:00
2005-06-07 00:31:53 +03:00
2005-11-20 20:47:07 +02:00
2006-06-30 09:26:36 +02:00
2006-07-01 22:13:42 +04:00
2006-04-04 17:54:58 -07:00
2006-04-18 11:07:34 +02:00
2006-06-26 19:14:35 +02:00
2006-06-28 23:47:45 +04:00
2006-06-12 08:54:45 -04:00
2006-06-29 14:14:08 +02:00
2006-05-31 16:19:06 +02:00
2005-10-15 21:57:32 +05:00
2005-10-15 21:57:32 +05:00
2006-06-26 19:19:12 +02:00
2006-06-26 16:56:28 +02:00
2006-06-17 00:30:02 +02:00
2006-07-01 01:25:59 +04:00
2006-01-03 17:54:54 +01:00
2006-06-21 19:41:09 +05:00
2006-03-28 01:01:51 +04:00
2006-03-28 01:01:51 +04:00
2006-01-11 17:49:56 +03:00
2005-06-07 00:31:53 +03:00
2005-05-09 11:26:48 +02:00
2006-02-24 18:34:15 +02:00
2006-02-24 18:34:15 +02:00
2005-10-27 23:43:20 +03:00
2006-04-21 18:26:39 -07:00
2005-10-08 16:39:55 +02:00
2006-06-28 14:23:33 +05:00
2006-06-27 15:39:43 +04:00
2006-06-28 23:47:45 +04:00
2006-06-28 23:47:45 +04:00
2005-10-06 17:37:24 -07:00
2005-08-10 21:17:02 +00:00
2006-06-30 00:21:55 +04:00
2006-06-27 00:47:52 +04:00
2006-04-18 11:07:34 +02:00
2006-04-18 11:07:34 +02:00
2006-05-15 12:01:55 +02:00
2006-05-15 12:01:55 +02:00
2006-06-27 00:47:52 +04:00
2006-06-27 00:47:52 +04:00
2005-11-21 21:15:48 +02:00
2006-06-28 16:28:29 +03:00
2006-06-28 12:40:17 +02:00
2006-05-06 11:25:59 +04:00
2006-03-09 10:09:52 -08:00
2005-05-26 21:01:55 +02:00
2005-08-25 17:34:34 +04:00
2006-06-26 19:19:12 +02:00
2005-07-19 14:13:56 +02:00
2006-04-07 23:58:17 +04:00
2006-02-25 17:46:30 +02:00
2006-07-04 23:46:15 +04:00
2006-06-28 23:47:45 +04:00
2005-06-05 19:38:52 +02:00
2005-05-26 12:09:14 +02:00
2006-04-07 23:58:17 +04:00
2005-09-22 02:11:21 +04:00
2006-06-28 23:47:45 +04:00
2006-07-04 02:07:41 +04:00
2005-10-28 00:18:23 +03:00
2005-07-01 07:05:42 +03:00
2006-03-16 12:06:39 +01:00
2005-04-01 15:04:50 +03:00
2006-06-26 19:14:35 +02:00
2006-01-03 17:54:54 +01:00
2006-06-27 03:34:12 +04:00
2006-07-01 00:14:28 +04:00
2006-07-04 02:07:41 +04:00
2005-06-05 19:38:52 +02:00
2005-11-28 21:57:50 +02:00
2006-05-26 11:47:53 +03:00
2005-10-12 00:59:52 +03:00
2005-06-22 14:08:28 +05:00
2005-05-26 12:09:14 +02:00
2005-08-12 17:57:19 +03:00
2006-07-04 23:46:15 +04:00
2006-05-07 16:14:43 -07:00
2006-02-24 23:50:36 +03:00
2006-04-13 17:22:56 +09:30
2006-06-30 02:02:20 +04:00
2006-06-28 16:28:29 +03:00
2006-06-30 00:21:55 +04:00
2006-03-23 12:41:28 +04:00
2005-12-14 01:21:56 +02:00
2006-06-27 03:34:12 +04:00
2006-05-03 21:35:27 -07:00
2006-06-28 23:54:18 +04:00
2006-02-26 16:38:48 +03:00
2006-06-27 00:47:52 +04:00
2006-06-08 13:25:28 -04:00
2006-04-21 08:19:38 -07:00
2006-06-28 16:28:29 +03:00
2006-06-27 00:47:52 +04:00
2005-11-03 16:43:05 +02:00
2006-06-27 21:28:32 +04:00
2005-04-20 20:38:57 +02:00
2005-04-20 20:38:57 +02:00
2006-06-14 23:54:08 +04:00
2006-06-30 19:15:18 +03:00
2006-06-27 14:56:24 +04:00
2005-07-31 12:49:55 +03:00
2006-06-27 00:47:52 +04:00
2006-04-24 18:57:00 +04:00
2006-04-28 11:37:20 +02:00
2006-01-03 17:54:54 +01:00
2005-11-03 14:20:13 +03:00
2006-04-12 23:05:38 +04:00