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

whitespace

This commit is contained in:
David Grudl
2017-09-21 14:17:14 +02:00
parent 4472fb3a3d
commit f0d08a990c

View File

@@ -18,7 +18,8 @@ Assert::same(
$conn->translate('REPLACE INTO [products]', [
'title' => 'Drticka',
'price' => 318,
]));
])
);
// multiple INSERT command
@@ -51,7 +52,8 @@ Assert::same(
$conn->translate('UPDATE [colors] SET', [
'color' => 'blue',
'order' => 12,
], 'WHERE [id]=%i', 123));
], 'WHERE [id]=%i', 123)
);
// IN array
@@ -194,7 +196,8 @@ Assert::same(
'b8%d' => null,
'b9%t' => null,
'c1%t' => new DateTime('1212-09-26 16:51:34.0124'),
]));
])
);
Assert::exception(function () use ($conn) {
$conn->translate('SELECT %s', new DateTime('1212-09-26'));
@@ -469,10 +472,10 @@ Assert::same(
$conn->translate('INSERT INTO [products]', [
'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'],
], [
], [
'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'],
])
])
);
Assert::same(
@@ -480,7 +483,7 @@ Assert::same(
$conn->translate('UPDATE [products]', [
'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'],
])
])
);
@@ -564,5 +567,5 @@ Assert::same(
'spec2%f' => 1000.00,
'spec3%i' => 10000,
'spec4' => 10000,
], 'WHERE [price]=%f', 123.5)
], 'WHERE [price]=%f', 123.5)
);