Skip to content

Commit

Permalink
Decided to make supportsQuoting not abstract, as most of drivers do
Browse files Browse the repository at this point in the history
support this operation
  • Loading branch information
lorenzo committed Feb 3, 2013
1 parent 4475b21 commit f306db3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Model/Datasource/Database/Driver.php
Expand Up @@ -124,7 +124,9 @@ public abstract function quote($value, $type);
*
* @return boolean
**/
public abstract function supportsQuoting();
public function supportsQuoting() {
return true;
}

/**
* Returns last id generated for a table or sequence in database
Expand Down
3 changes: 3 additions & 0 deletions lib/Cake/Model/Datasource/Database/Query.php
Expand Up @@ -471,6 +471,9 @@ public function _buildFromPart($parts) {
* 'table' => 'products', 'type' => 'INNER', 'conditions' => 'a.owner_id = p.id
* ]
* ]);
* // LEFT JOIN authors a ON (a.id = b.author_id)
* // INNER JOIN products p (a.owner_id = p.id)
* }}
*
* ## Using conditions and types
*
Expand Down

0 comments on commit f306db3

Please sign in to comment.