1
0
Fork 0
SVEN/webseite/sys/sources/envms-fluentpdo/tests/34-insert-ignore.phpt

27 lines
486 B
PHP

--TEST--
insert ignore
--FILE--
<?php
include_once dirname(__FILE__) . "/connect.inc.php";
/* @var Envms\FluentPDO\Query */
$query = $fluent->insertInto('article',
array(
'user_id' => 1,
'title' => 'new title',
'content' => 'new content',
))->ignore();
echo $query->getQuery() . "\n";
print_r($query->getParameters());
?>
--EXPECTF--
INSERT IGNORE INTO article (user_id, title, content)
VALUES (?, ?, ?)
Array
(
[0] => 1
[1] => new title
[2] => new content
)