1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-29 08:49:50 +02:00

code formatting: 4 spaces -> tabs

This commit is contained in:
David Grudl
2008-05-12 00:30:59 +00:00
parent fd22c55639
commit 7bb5684d71
37 changed files with 5309 additions and 5309 deletions

View File

@@ -12,26 +12,26 @@ date_default_timezone_set('Europe/Prague');
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'sample.sdb',
'driver' => 'sqlite',
'database' => 'sample.sdb',
));
// dibi detects INSERT or REPLACE command
dibi::test('
REPLACE INTO [products]', array(
'title' => 'Drti<74>ka na tr<74>vu',
'price' => 318,
'active' => TRUE,
'title' => 'Drti<74>ka na tr<74>vu',
'price' => 318,
'active' => TRUE,
));
// multiple INSERT command
$array = array(
'title' => 'Super Product',
'price' => 12,
'brand' => NULL,
'created' => dibi::datetime(),
'title' => 'Super Product',
'price' => 12,
'brand' => NULL,
'created' => dibi::datetime(),
);
dibi::test("INSERT INTO [products]", $array, $array, $array);
@@ -39,8 +39,8 @@ dibi::test("INSERT INTO [products]", $array, $array, $array);
// dibi detects UPDATE command
dibi::test("
UPDATE [colors] SET", array(
'color' => 'blue',
'order' => 12,
'color' => 'blue',
'order' => 12,
), "
WHERE [id]=%i", 123);