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

- supported substitutions :subst: outside of brackets []

This commit is contained in:
David Grudl
2009-02-22 18:58:29 +00:00
parent a26744388d
commit b958e37fdf
2 changed files with 20 additions and 13 deletions

View File

@@ -16,8 +16,8 @@ dibi::connect(array(
// create new substitution :blog: ==> wp_
dibi::addSubst('blog', 'wp_');
dibi::test("UPDATE [:blog:items] SET [text]='Hello World'");
// -> UPDATE [wp_items] SET [text]='Hello World'
dibi::test("UPDATE :blog:items SET [text]='Hello World'");
// -> UPDATE wp_items SET [text]='Hello World'