Commit 83c67af5 authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #287 from avbdr/master

fixes
parents 24a8a99a 0763046c
...@@ -207,10 +207,7 @@ $json = $db->JsonBuilder()->getOne("users"); ...@@ -207,10 +207,7 @@ $json = $db->JsonBuilder()->getOne("users");
### Running raw SQL queries ### Running raw SQL queries
```php ```php
// filtering enabled $users = $db->rawQuery('SELECT * from users where id >= ?', Array (10));
$users = $db->rawQuery('SELECT * from users where customerId=?', Array (10));
// filtering disabled
//$users = $db->rawQuery('SELECT * from users where id >= ?', Array (10));
foreach ($users as $user) { foreach ($users as $user) {
print_r ($user); print_r ($user);
} }
......
...@@ -191,6 +191,7 @@ $user = Array ('login' => 'user3', ...@@ -191,6 +191,7 @@ $user = Array ('login' => 'user3',
); );
$updateColumns = Array ("updatedAt"); $updateColumns = Array ("updatedAt");
$insertLastId = "id"; $insertLastId = "id";
sleep(1);
$db->onDuplicate($updateColumns, "id"); $db->onDuplicate($updateColumns, "id");
$db->insert("users", $user); $db->insert("users", $user);
$nUser = $db->where('login','user3')->get('users'); $nUser = $db->where('login','user3')->get('users');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment