Commit 35352d4d authored by Michael Widenius's avatar Michael Widenius

mysql-test/suite/funcs_1/r/storedproc.result:

  Fixed test failure
mysql-test/suite/funcs_1/t/storedproc.test:
  Fixed test failure
  (The error changed as syntax for alter changed with ALTER ONLINE)
storage/maria/ha_maria.cc:
  fixed compiler warning
parent 80b0b300
...@@ -3082,7 +3082,7 @@ DROP PROCEDURE IF EXISTS sp1; ...@@ -3082,7 +3082,7 @@ DROP PROCEDURE IF EXISTS sp1;
--enable_warnings --enable_warnings
delimiter //; delimiter //;
--error ER_SP_BADSTATEMENT --error ER_PARSE_ERROR
CREATE PROCEDURE sp1() CREATE PROCEDURE sp1()
alter:BEGIN alter:BEGIN
SELECT @x; SELECT @x;
......
...@@ -1967,7 +1967,7 @@ void ha_maria::start_bulk_insert(ha_rows rows) ...@@ -1967,7 +1967,7 @@ void ha_maria::start_bulk_insert(ha_rows rows)
/* don't enable row cache if too few rows */ /* don't enable row cache if too few rows */
if (!rows || (rows > MARIA_MIN_ROWS_TO_USE_WRITE_CACHE)) if (!rows || (rows > MARIA_MIN_ROWS_TO_USE_WRITE_CACHE))
{ {
size_t size= thd->variables.read_buff_size; ulonglong size= thd->variables.read_buff_size, tmp;
if (rows) if (rows)
{ {
if (file->state->records) if (file->state->records)
...@@ -1979,7 +1979,8 @@ void ha_maria::start_bulk_insert(ha_rows rows) ...@@ -1979,7 +1979,8 @@ void ha_maria::start_bulk_insert(ha_rows rows)
else if (table->s->avg_row_length) else if (table->s->avg_row_length)
set_if_smaller(size, (size_t) (table->s->avg_row_length * rows)); set_if_smaller(size, (size_t) (table->s->avg_row_length * rows));
} }
maria_extra(file, HA_EXTRA_WRITE_CACHE, (void*) &size); tmp= (ulong) size; // Safe becasue of limits
maria_extra(file, HA_EXTRA_WRITE_CACHE, (void*) &tmp);
} }
can_enable_indexes= (maria_is_all_keys_active(share->state.key_map, can_enable_indexes= (maria_is_all_keys_active(share->state.key_map,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment