add insertIgnore() function -- pretty self explanatory

This commit is contained in:
Sergey Tsalkov
2011-09-23 16:11:10 -07:00
parent 164c7157a6
commit a2800ef04b
2 changed files with 19 additions and 9 deletions

View File

@@ -222,6 +222,16 @@ class BasicTest extends SimpleTest {
$this->assert($smile === $getsmile2);
$this->assert($smile === $getsmile3);
}
function test_6_insert_ignore() {
DB::insertIgnore('accounts', array(
'id' => 1, //duplicate primary key
'username' => 'gonesoon',
'password' => 'something',
'age' => 61,
'height' => 199.194
));
}
}