summaryrefslogtreecommitdiffstats
path: root/tests/Components/IntoKeywordTest.php
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-10-03 16:02:01 +0200
committerGitHub <noreply@github.com>2016-10-03 16:02:01 +0200
commit582f9e662ed315350496c127aee2bd57be4b2e9c (patch)
treec51e2720f4f6545b6310207b97f24cecf9d6cd6e /tests/Components/IntoKeywordTest.php
parent280c72f01c11a59d54fd6f41eb44ec049e9ad79d (diff)
parent31e346b48ad1e6ecd2edf271f2373802a08a374a (diff)
downloadsql-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.php6
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"'));