1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

DibiConnection::sql() renamed to verb translate()

This commit is contained in:
David Grudl
2010-08-04 12:10:29 +02:00
parent 746a553419
commit 5cce595518
3 changed files with 15 additions and 4 deletions

View File

@@ -286,7 +286,7 @@ class DibiDataSource extends DibiObject implements IDataSource
*/
public function __toString()
{
return $this->connection->sql('
return $this->connection->translate('
SELECT %n', (empty($this->cols) ? '*' : $this->cols), '
FROM %SQL', $this->sql, '
%ex', $this->conds ? array('WHERE %and', $this->conds) : NULL, '