Branch: Tag:

2012-01-17

2012-01-17 15:54:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Search.Queue.MySQL: Support MySQL 4.1 and earlier.

50:    INDEX uri (uri(255))    )    "); -  if (!sizeof(db->query("SHOW INDEX FROM " + table + -  " WHERE key_name = 'uri'"))) { +  if (!((multiset)db->query("SHOW INDEX FROM " + table)->Key_name)["uri"]) {    db->query("ALTER TABLE " + table +    " ADD INDEX uri (uri(255))");    }