diff options
author | Michal Čihař <michal@cihar.com> | 2016-10-03 16:02:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 16:02:01 +0200 |
commit | 582f9e662ed315350496c127aee2bd57be4b2e9c (patch) | |
tree | c51e2720f4f6545b6310207b97f24cecf9d6cd6e /tests/Components/IntoKeywordTest.php | |
parent | 280c72f01c11a59d54fd6f41eb44ec049e9ad79d (diff) | |
parent | 31e346b48ad1e6ecd2edf271f2373802a08a374a (diff) | |
download | sql-parser-582f9e662ed315350496c127aee2bd57be4b2e9c.zip sql-parser-582f9e662ed315350496c127aee2bd57be4b2e9c.tar.gz sql-parser-582f9e662ed315350496c127aee2bd57be4b2e9c.tar.bz2 |
Merge pull request #90 from devenbansod/subquery_in_from
Fix parsing of subquery in FROM clause
Diffstat (limited to 'tests/Components/IntoKeywordTest.php')
-rw-r--r-- | tests/Components/IntoKeywordTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Components/IntoKeywordTest.php b/tests/Components/IntoKeywordTest.php index c18938a..388368c 100644 --- a/tests/Components/IntoKeywordTest.php +++ b/tests/Components/IntoKeywordTest.php @@ -23,6 +23,12 @@ class IntoKeywordTest extends TestCase $this->assertEquals('tbl(`col1`, `col2`)', IntoKeyword::build($component)); } + public function testBuildValues() + { + $component = IntoKeyword::parse(new Parser(), $this->getTokensList('@a1, @a2, @a3')); + $this->assertEquals('@a1, @a2, @a3', IntoKeyword::build($component)); + } + public function testBuildOutfile() { $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE "/tmp/outfile.txt"')); |