Bug#15690 mysqlimport tries to set options the server doesn't understand

- "set @@character_set_database" should be ignored by servers prior to 4.1.1
This commit is contained in:
msvensson@neptunus.(none) 2006-07-20 17:30:44 +02:00
parent cb23cd759e
commit dbb5a408ea

View file

@ -521,7 +521,7 @@ int main(int argc, char **argv)
return(1); /* purecov: deadcode */
}
if (mysql_query(sock, "set @@character_set_database=binary;"))
if (mysql_query(sock, "/*!40101 set @@character_set_database=binary */;"))
{
db_error(sock); /* We shall countinue here, if --force was given */
return(1);