1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Update 'MYSQL_FIELD->max_length' on mysql_stmt_store_result() (Bug #1647)

Added checking of cut read lines in bootstrap thread (Bug #2874)
This commit is contained in:
monty@mysql.com
2004-04-30 14:02:17 +03:00
parent 32d0b69503
commit 6678ecf19a
6 changed files with 816 additions and 529 deletions

View File

@ -1095,6 +1095,12 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
while (fgets(buff, thd->net.max_packet, file))
{
uint length=(uint) strlen(buff);
if (buff[length-1]!='\n' && !feof(file))
{
send_error(thd,ER_NET_PACKET_TOO_LARGE, NullS);
thd->is_fatal_error= 1;
break;
}
while (length && (my_isspace(thd->charset(), buff[length-1]) ||
buff[length-1] == ';'))
length--;