1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-02 20:27:35 +02:00

DibiTranslator: fixed usage of modifier ?

This commit is contained in:
David Grudl
2012-01-03 05:14:44 +01:00
parent dbb72b769b
commit 74a139974c
8 changed files with 17 additions and 17 deletions

View File

@@ -54,7 +54,7 @@ dibi::insert('products', $record)
// UPDATE ...
dibi::update('products', $record)
->where('product_id = %d', $id)
->where('product_id = ?', $id)
->test();
// -> UPDATE [products] SET [title]='Super product', [price]=318, [active]=1 WHERE product_id = 10
@@ -62,7 +62,7 @@ dibi::update('products', $record)
// DELETE ...
dibi::delete('products')
->where('product_id = %d', $id)
->where('product_id = ?', $id)
->test();
// -> DELETE FROM [products] WHERE product_id = 10
@@ -71,7 +71,7 @@ dibi::delete('products')
// custom commands
dibi::command()
->update('products')
->where('product_id = %d', $id)
->where('product_id = ?', $id)
->set($record)
->test();
// -> UPDATE [products] SET [title]='Super product', [price]=318, [active]=1 WHERE product_id = 10