diff options
Diffstat (limited to 'tests/Builder/ReplaceStatementTest.php')
-rw-r--r-- | tests/Builder/ReplaceStatementTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Builder/ReplaceStatementTest.php b/tests/Builder/ReplaceStatementTest.php index ad0c141..ee5b95a 100644 --- a/tests/Builder/ReplaceStatementTest.php +++ b/tests/Builder/ReplaceStatementTest.php @@ -43,4 +43,16 @@ class ReplaceStatementTest extends TestCase $stmt->build() ); } + + public function testBuilderSelectDelayed() + { + $parser = new Parser( + 'REPLACE DELAYED INTO tbl(col1, col2, col3) SELECT col1, col2, col3 FROM tbl2' + ); + $stmt = $parser->statements[0]; + $this->assertEquals( + 'REPLACE DELAYED INTO tbl(`col1`, `col2`, `col3`) SELECT col1, col2, col3 FROM tbl2', + $stmt->build() + ); + } } |