=== modified file 'driver/catalog.c' --- driver/catalog.c 2010-04-30 13:20:44 +0000 +++ driver/catalog.c 2010-06-23 10:01:42 +0000 @@ -1856,7 +1856,7 @@ CLEAR_STMT_ERROR(hstmt); my_SQLFreeStmt(hstmt,MYSQL_RESET); - if (server_has_i_s(stmt->dbc)) + if (server_has_i_s(stmt->dbc) && !stmt->dbc->ds->no_information_schema) { MYSQL *mysql= &stmt->dbc->mysql; char query[2048], *buff; /* This should be big enough. */