Commit c17afb95 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Database.php: allow all SQL commands.

parent 40b387b0
Pipeline #1286 passed with stage
in 1 minute and 43 seconds
......@@ -448,7 +448,11 @@ class Database {
break;
default:
throw new DbException('Unknown command: "' . $command . '"' . $specificMessage, ERROR_DB_UNKNOWN_COMMAND);
// Unknown command: treat it as a control command
$queryType = QUERY_TYPE_CONTROL;
$stat[DB_AFFECTED_ROWS] = 0;
$count = $stat[DB_AFFECTED_ROWS];
$msg = '';
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment