unknown
ee3cf23b5c
Fix for bug#14945 "Truncate table doesn't reset the auto_increment
...
counter".
When TRUNCATE TABLE was called within an stored procedure the
auto_increment counter was not reset to 0 even if straight
TRUNCATE for this table did this.
This fix makes TRUNCATE in stored procedures to be handled exactly
in the same way as straight TRUNCATE. We achieve this by rolling
back the fix for bug 8850, which is no longer needed since stored
procedures don't require prelocked mode anymore (and TRUNCATE is
not allowed in stored functions or triggers).
mysql-test/r/sp.result:
Test case for BUG#14945.
mysql-test/t/sp.test:
Test case for BUG#14945.
sql/sql_delete.cc:
Handle TRUNCATE in stored procedures exactly in the same way as straight
TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
this by rolling back the fix for bug 8850, which is no longer relevant
since stored procedures don't require prelocked mode anymore
(and TRUNCATE is not allowed in stored functions or triggers).
sql/sql_parse.cc:
Handle TRUNCATE in stored procedures exactly in the same way as straight
TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
this by rolling back the fix for bug 8850, which is no longer relevant
since stored procedures don't require prelocked mode anymore
(and TRUNCATE is not allowed in stored functions or triggers).
2006-04-06 15:19:01 +05:00
..
2005-11-26 08:54:13 +01:00
2006-03-10 10:42:42 +01:00
2005-09-30 14:03:55 +02:00
2006-03-02 20:49:10 -05:00
2006-03-28 18:32:58 +05:00
2006-03-30 00:20:14 +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-02-13 04:11:22 -08:00
2006-02-13 04:11:22 -08:00
2005-11-20 20:47:07 +02:00
2005-11-03 22:42:25 +02:00
2005-10-02 20:13:18 -07:00
2005-08-26 15:56:52 +03:00
2006-02-28 11:17:40 +01:00
2006-02-28 11:17:40 +01:00
2006-02-03 00:07:36 +03:00
2006-02-02 18:17:18 +03:00
2006-03-29 23:04:32 +04:00
2006-01-31 21:41:48 +03:00
2006-01-03 17:54:54 +01:00
2005-07-19 22:21:12 +04:00
2006-02-11 21:51:43 +03:00
2005-07-19 22:21:12 +04:00
2006-03-28 15:40:08 +02:00
2006-03-23 09:48:46 +01:00
2006-02-17 10:52:32 +04:00
2006-02-25 17:46:30 +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
2005-07-25 12:57:23 -07:00
2006-03-24 12:44:54 -08:00
2006-02-25 17:46:30 +02:00
2005-09-14 20:25:00 +04:00
2005-08-25 17:34:34 +04:00
2006-03-23 21:45:00 +01:00
2006-03-10 13:53:00 +03:00
2005-10-31 11:54:36 +02:00
2005-05-09 11:26:48 +02:00
2005-10-15 14:32:37 -07:00
2005-07-01 07:05:42 +03:00
2006-02-17 08:32:50 -08:00
2006-03-06 12:52:38 +04:00
2005-11-22 23:00:57 -08:00
2006-02-15 19:45:06 +03:00
2006-03-05 20:48:31 +04:00
2006-02-28 19:30:30 +03:00
2006-03-02 14:54:04 +01:00
2005-11-10 15:13:12 +01:00
2005-06-07 00:31:53 +03:00
2005-11-20 20:47:07 +02:00
2006-03-27 18:28:55 -08:00
2006-03-02 14:54:04 +01:00
2005-11-20 20:47:07 +02:00
2006-02-17 10:52:32 +04:00
2006-01-04 17:49:45 +03:00
2006-03-21 14:35:49 +01:00
2006-02-25 17:46:30 +02:00
2006-02-18 17:19:16 +01:00
2006-03-10 12:12:08 +01:00
2005-10-15 21:57:32 +05:00
2005-10-15 21:57:32 +05:00
2006-03-21 14:35:49 +01:00
2006-03-16 00:15:23 -08:00
2006-03-02 10:55:55 +01:00
2006-03-23 18:09:35 +04:00
2006-01-03 17:54:54 +01:00
2006-01-06 22:28:26 -08: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-01-03 17:54:54 +01:00
2005-10-08 16:39:55 +02:00
2006-02-18 17:32:15 +01:00
2006-02-14 08:24:01 +04:00
2006-02-17 10:52:32 +04:00
2006-01-03 17:54:54 +01:00
2005-10-06 17:37:24 -07:00
2005-08-10 21:17:02 +00:00
2006-03-21 14:35:49 +01:00
2006-03-02 15:18:49 +03:00
2006-02-15 12:11:29 +01:00
2006-02-15 12:11:29 +01:00
2006-02-01 16:00:11 +01:00
2006-02-25 17:46:30 +02:00
2006-03-28 15:08:17 +02:00
2006-01-26 13:29:46 +01:00
2005-11-21 21:15:48 +02:00
2006-02-25 17:46:30 +02:00
2006-03-20 13:42:02 +04:00
2005-11-30 21:27:11 +02: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-03-06 11:41:19 +02:00
2005-07-19 14:13:56 +02:00
2006-01-04 17:49:45 +03:00
2006-02-25 17:46:30 +02:00
2006-02-24 18:34:15 +02:00
2006-03-10 16:47:56 +02:00
2005-06-05 19:38:52 +02:00
2005-05-26 12:09:14 +02:00
2006-02-24 18:34:15 +02:00
2005-09-22 02:11:21 +04:00
2006-03-01 17:43:55 +03:00
2006-04-06 15:19:01 +05: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
2006-01-16 23:15:00 +02:00
2006-01-03 17:54:54 +01:00
2006-03-29 14:55:04 +04:00
2006-03-09 16:44:08 -08:00
2006-03-09 16:44:08 -08:00
2005-06-05 19:38:52 +02:00
2005-11-28 21:57:50 +02:00
2006-03-29 10:56:11 -05: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-04-06 15:19:01 +05:00
2006-03-09 16:44:08 -08:00
2006-02-24 23:50:36 +03:00
2006-01-03 17:54:54 +01:00
2006-03-28 16:05:06 +02:00
2006-02-27 20:00:03 +03:00
2006-03-20 14:17:47 +04:00
2006-03-23 12:41:28 +04:00
2005-12-14 01:21:56 +02:00
2006-03-30 09:13:25 +05:00
2006-01-03 17:54:54 +01:00
2006-03-28 01:01:51 +04:00
2006-02-26 16:38:48 +03:00
2006-03-20 21:35:05 +01:00
2005-07-01 07:05:42 +03:00
2005-10-13 11:53:00 +04:00
2006-02-25 17:46:30 +02:00
2006-03-28 15:06:29 +04:00
2005-11-03 16:43:05 +02:00
2006-03-15 19:15:52 +02:00
2005-11-20 20:47:07 +02:00
2006-03-22 13:11:31 +04:00
2006-03-06 11:41:19 +02:00
2005-07-31 12:49:55 +03:00
2006-02-25 17:46:30 +02:00
2006-02-25 17:46:30 +02:00
2006-03-24 11:12:32 +01:00
2006-01-03 17:54:54 +01:00
2005-11-03 14:20:13 +03:00
2005-12-06 08:19:23 +01:00