Post-push fix for BUG#18344: DROP DATABASE does not drop associated routines

Fixed windows compile error in sql/sp.cc (missing cast to byte*)
This commit is contained in:
pem@mysql.com 2006-04-21 14:30:44 +02:00
parent 8c5ae25ff5
commit 8532fa29f4

View File

@ -901,7 +901,7 @@ sp_drop_db_routines(THD *thd, char *db)
ret= SP_OK;
table->file->ha_index_init(0);
if (! table->file->index_read(table->record[0],
table->field[MYSQL_PROC_FIELD_DB]->ptr,
(byte *)table->field[MYSQL_PROC_FIELD_DB]->ptr,
key_len, HA_READ_KEY_EXACT))
{
int nxtres;
@ -918,7 +918,7 @@ sp_drop_db_routines(THD *thd, char *db)
break;
}
} while (! (nxtres= table->file->index_next_same(table->record[0],
table->field[MYSQL_PROC_FIELD_DB]->ptr,
(byte *)table->field[MYSQL_PROC_FIELD_DB]->ptr,
key_len)));
if (nxtres != HA_ERR_END_OF_FILE)
ret= SP_KEY_NOT_FOUND;