mirror of
https://github.com/dg/dibi.git
synced 2025-08-17 03:24:21 +02:00
- REWRITTEN DibiTranslar
- allows modifiers inside SQL -> modifiers become placeholders - new modifier %ex - expand array - new modifiers %or and %and - changed interface IDibiVariable and implementation DibiVariable
This commit is contained in:
@@ -206,8 +206,7 @@ class DibiConnection extends NObject
|
||||
*/
|
||||
final public function query($args)
|
||||
{
|
||||
if (!is_array($args)) $args = func_get_args();
|
||||
|
||||
$args = func_get_args();
|
||||
$this->connect();
|
||||
$trans = new DibiTranslator($this->driver);
|
||||
if ($trans->translate($args)) {
|
||||
@@ -227,8 +226,7 @@ class DibiConnection extends NObject
|
||||
*/
|
||||
final public function test($args)
|
||||
{
|
||||
if (!is_array($args)) $args = func_get_args();
|
||||
|
||||
$args = func_get_args();
|
||||
$trans = new DibiTranslator($this->driver);
|
||||
$ok = $trans->translate($args);
|
||||
dibi::dump($trans->sql);
|
||||
|
Reference in New Issue
Block a user