summaryrefslogtreecommitdiffstats
path: root/tests/Builder/TransactionStatementTest.php
diff options
context:
space:
mode:
authorPrzemek Szalko <p.szalko@gmail.com>2019-02-15 15:04:01 +0100
committerPrzemek Szalko <p.szalko@gmail.com>2019-02-15 15:04:01 +0100
commit457d094e9333dc83e2867032db2ffca894066b29 (patch)
tree3031659ab3ede9502f0d394b5c67f3b8cd24fbb6 /tests/Builder/TransactionStatementTest.php
parentdc4c38af8eccd27a6856f712239bdb61aad42b8d (diff)
downloadsql-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.php4
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()
);