1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00
This commit is contained in:
David Grudl
2010-08-05 23:56:56 +02:00
parent f651d9f473
commit ff3ca38504
2 changed files with 4 additions and 4 deletions

View File

@@ -653,7 +653,7 @@ class dibi
if ($expr === TRUE) { if ($expr === TRUE) {
self::$substs = array(); self::$substs = array();
} else { } else {
unset(self::$substs[':'.$expr.':']); unset(self::$substs[$expr]);
} }
} }

View File

@@ -55,8 +55,8 @@ define('SUBST_ACCOUNT', 'eshop_');
define('SUBST_ACTIVE', 7); define('SUBST_ACTIVE', 7);
dibi::test(" dibi::test("
UPDATE [:account:user] UPDATE :account:user
SET [name]='John Doe', [status]=:active: SET name='John Doe', status=:active:
WHERE id=", 7 WHERE id=", 7
); );
// -> UPDATE [the_accountuser] SET [name]='John Doe', [status]=7 WHERE id=7 // -> UPDATE eshop_user SET name='John Doe', status=7 WHERE id= 7