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

whitespace

This commit is contained in:
David Grudl
2017-09-21 14:17:14 +02:00
parent ecda8d0adf
commit 832313bc73

View File

@@ -20,7 +20,8 @@ Assert::same(
$conn->translate('REPLACE INTO [products]', [
'title' => 'Drticka',
'price' => 318,
]));
])
);
// multiple INSERT command
@@ -53,7 +54,8 @@ Assert::same(
$conn->translate('UPDATE [colors] SET', [
'color' => 'blue',
'order' => 12,
], 'WHERE [id]=%i', 123));
], 'WHERE [id]=%i', 123)
);
// IN array
@@ -198,7 +200,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'));
@@ -473,10 +476,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(
@@ -484,7 +487,7 @@ Assert::same(
$conn->translate('UPDATE [products]', [
'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'],
])
])
);
@@ -568,5 +571,5 @@ Assert::same(
'spec2%f' => 1000.00,
'spec3%i' => 10000,
'spec4' => 10000,
], 'WHERE [price]=%f', 123.5)
], 'WHERE [price]=%f', 123.5)
);