@@ -210,7 +210,12 @@ public function preLoadRoutes($names) {
$routes=$cache->data;
}
else{
$result=$this->connection->query('SELECT name, route FROM {'.$this->connection->escapeTable($this->tableName).'} WHERE name IN ( :names[] )',array(':names[]'=>$routes_to_load));
try{
$result=$this->connection->query('SELECT name, route FROM {'.$this->connection->escapeTable($this->tableName).'} WHERE name IN ( :names[] )',array(':names[]'=>$routes_to_load));
@@ -336,10 +341,15 @@ protected function getRoutesByPath($path) {
// The >= check on number_parts allows us to match routes with optional
// trailing wildcard parts as long as the pattern matches, since we
// dump the route pattern without those optional parts.
$routes=$this->connection->query("SELECT name, route, fit FROM {".$this->connection->escapeTable($this->tableName)."} WHERE pattern_outline IN ( :patterns[] ) AND number_parts >= :count_parts",array(
$routes=$this->connection->query("SELECT name, route, fit FROM {".$this->connection->escapeTable($this->tableName)."} WHERE pattern_outline IN ( :patterns[] ) AND number_parts >= :count_parts",array(