Branch: Tag:

2015-06-10

2015-06-10 14:29:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mysql: Survive UNDEFINED wildcards...

1498:    MYSQL *mysql = PIKE_MYSQL->mysql;    MYSQL_RES *result = NULL;    -  if (args) { +  if (wild) {    CHECK_8BIT_NONBINARY_STRING ("Mysql.mysql->list_dbs", 1);    if (wild->len > 80) {    if (wild->len < 1024) {
1555:    MYSQL *mysql = PIKE_MYSQL->mysql;    MYSQL_RES *result = NULL;    -  if (args) { +  if (wild) {    CHECK_8BIT_NONBINARY_STRING ("Mysql.mysql->list_tables", 1);    if (wild->len > 80) {    if (wild->len < 1024) {
1686:    DO_NOT_WARN((long)table->len));    }    } -  if (args > 1) { +  if (wild) {    CHECK_8BIT_NONBINARY_STRING ("Mysql.mysql->list_fields", 2);    if (wild->len + table->len > 125) {    /* The length of the table name has already been checked. */