mirror of
https://github.com/dg/dibi.git
synced 2025-08-31 09:41:43 +02:00
coding style
This commit is contained in:
@@ -15,35 +15,35 @@ $conn = new Dibi\Connection($config);
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM where WHERE select < 2'),
|
||||
$conn->translate('SELECT * FROM where WHERE select < 2')
|
||||
$conn->translate('SELECT * FROM where WHERE select < 2'),
|
||||
);
|
||||
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM [where] WHERE where.select < 2'),
|
||||
$conn->translate('SELECT * FROM [where] WHERE where.select < 2')
|
||||
$conn->translate('SELECT * FROM [where] WHERE where.select < 2'),
|
||||
);
|
||||
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM [where] WHERE [where].[select] < 2'),
|
||||
$conn->translate('SELECT * FROM [where] WHERE [where.select] < 2')
|
||||
$conn->translate('SELECT * FROM [where] WHERE [where.select] < 2'),
|
||||
);
|
||||
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM [where] as [temp] WHERE [temp].[select] < 2'),
|
||||
$conn->translate('SELECT * FROM [where] as [temp] WHERE [temp.select] < 2')
|
||||
$conn->translate('SELECT * FROM [where] as [temp] WHERE [temp.select] < 2'),
|
||||
);
|
||||
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM [where] WHERE [quot\'n\' space] > 2'),
|
||||
$conn->translate("SELECT * FROM [where] WHERE [quot'n' space] > 2")
|
||||
$conn->translate("SELECT * FROM [where] WHERE [quot'n' space] > 2"),
|
||||
);
|
||||
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM [where] WHERE [where].[quot\'n\' space] > 2'),
|
||||
$conn->translate("SELECT * FROM [where] WHERE [where.quot'n' space] > 2")
|
||||
$conn->translate("SELECT * FROM [where] WHERE [where.quot'n' space] > 2"),
|
||||
);
|
||||
|
Reference in New Issue
Block a user