1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 21:28:02 +02:00

Revert "empty substitutions are going to be deprecated" commit e50b1a0b5a.

This commit is contained in:
David Grudl
2010-08-05 23:55:59 +02:00
parent 3568e041c5
commit f651d9f473
2 changed files with 11 additions and 4 deletions

View File

@@ -26,6 +26,16 @@ dibi::test("SELECT * FROM [:blog:items]");
// create new substitution :: (empty) ==> my_
dibi::addSubst('', 'my_');
dibi::test("UPDATE ::table SET [text]='Hello World'");
// -> UPDATE my_table SET [text]='Hello World'
// create substitutions using fallback callback
function substFallBack($expr)
{