diff options
author | Przemek Szalko <p.szalko@gmail.com> | 2019-02-15 15:04:01 +0100 |
---|---|---|
committer | Przemek Szalko <p.szalko@gmail.com> | 2019-02-15 15:04:01 +0100 |
commit | 457d094e9333dc83e2867032db2ffca894066b29 (patch) | |
tree | 3031659ab3ede9502f0d394b5c67f3b8cd24fbb6 /tests/Builder/TransactionStatementTest.php | |
parent | dc4c38af8eccd27a6856f712239bdb61aad42b8d (diff) | |
download | sql-parser-457d094e9333dc83e2867032db2ffca894066b29.zip sql-parser-457d094e9333dc83e2867032db2ffca894066b29.tar.gz sql-parser-457d094e9333dc83e2867032db2ffca894066b29.tar.bz2 |
Changed implementation of build() methods to generate more consistent SQL.
This commit fixes implementation of `build()` methods to produce more consistent SQL code without redundant spaces.
Diffstat (limited to 'tests/Builder/TransactionStatementTest.php')
-rw-r--r-- | tests/Builder/TransactionStatementTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Builder/TransactionStatementTest.php b/tests/Builder/TransactionStatementTest.php index 4bdfe70..5cd28c6 100644 --- a/tests/Builder/TransactionStatementTest.php +++ b/tests/Builder/TransactionStatementTest.php @@ -20,8 +20,8 @@ class TransactionStatementTest extends TestCase $this->assertEquals( 'START TRANSACTION;' . - 'SELECT @A:=SUM(salary) FROM table1 WHERE type=1 ;' . - 'UPDATE table2 SET summary = @A WHERE type=1 ;' . + 'SELECT @A:=SUM(salary) FROM table1 WHERE type=1;' . + 'UPDATE table2 SET summary = @A WHERE type=1;' . 'COMMIT', $stmt->build() ); |