mirror of
https://github.com/dg/dibi.git
synced 2025-08-01 11:50:15 +02:00
* fixed affectedRows & insertId bug
This commit is contained in:
@@ -49,8 +49,3 @@ try {
|
||||
echo "DibiException: <pre>", $e;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -75,5 +75,3 @@ INSERT INTO [mytable]", array(
|
||||
'C' => new TDateTime(31542), // using out class
|
||||
'D' => 'any string',
|
||||
));
|
||||
|
||||
|
||||
|
@@ -34,5 +34,3 @@ dibi::dump($sql);
|
||||
echo '<h1>dibi::dumpResult()</h1>';
|
||||
|
||||
dibi::dumpResult($res);
|
||||
|
||||
|
||||
|
@@ -43,6 +43,3 @@ foreach ($res as $row => $fields) {
|
||||
foreach ($res->getIterator(2, 3) as $row => $fields) {
|
||||
print_r($fields);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@@ -29,4 +29,3 @@ var_dump($record);
|
||||
$res->setType(TRUE);
|
||||
$record = $res->fetch();
|
||||
var_dump($record);
|
||||
|
||||
|
@@ -70,6 +70,3 @@ dibi::test("UPDATE [mytable] SET", $arr4, " WHERE [id]=%i", $n);
|
||||
|
||||
// array with modifier %a - assoc
|
||||
dibi::test("UPDATE [mytable] SET%a", $arr4, " WHERE [id]=%i", $n);
|
||||
|
||||
|
||||
|
||||
|
@@ -48,5 +48,3 @@ WHERE
|
||||
%if', $cond2, 'AND [admin]=1 %end
|
||||
%else LIMIT 10 %end'
|
||||
);
|
||||
|
||||
|
||||
|
@@ -28,5 +28,3 @@ dibi::addSubst('', 'my_');
|
||||
|
||||
// generate and dump SQL
|
||||
dibi::test("UPDATE [database.::table] SET [text]='Hello World'");
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user