1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00
Files
mariadb/sql
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
2005-09-30 14:03:55 +02:00
2005-11-03 22:42:25 +02:00
2006-02-03 00:07:36 +03:00
2006-03-29 23:04:32 +04:00
2006-02-17 10:52:32 +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
2005-10-15 14:32:37 -07:00
2005-06-07 00:31:53 +03:00
2006-03-27 18:28:55 -08:00
2006-02-17 10:52:32 +04:00
2006-03-10 12:12:08 +01:00
2006-03-16 00:15:23 -08:00
2005-06-07 00:31:53 +03:00
2006-02-14 08:24:01 +04:00
2006-02-17 10:52:32 +04:00
2006-02-01 16:00:11 +01:00
2005-05-26 21:01:55 +02:00
2005-08-12 17:57:19 +03:00
2005-12-14 01:21:56 +02:00
2006-03-30 09:13:25 +05:00
2005-07-31 12:49:55 +03:00
2005-12-06 08:19:23 +01:00