diff options
author | Deven Bansod <devenbansod.bits@gmail.com> | 2016-09-28 11:48:10 +0530 |
---|---|---|
committer | Deven Bansod <devenbansod.bits@gmail.com> | 2016-09-28 11:48:10 +0530 |
commit | 31e346b48ad1e6ecd2edf271f2373802a08a374a (patch) | |
tree | 6905f888bbe76d4cad52454c327a6dd5dbcb37d2 /tests/Components/IntoKeywordTest.php | |
parent | c2d9745b21f41f673bd7c314b29ba41e90d78fd1 (diff) | |
download | sql-parser-31e346b48ad1e6ecd2edf271f2373802a08a374a.zip sql-parser-31e346b48ad1e6ecd2edf271f2373802a08a374a.tar.gz sql-parser-31e346b48ad1e6ecd2edf271f2373802a08a374a.tar.bz2 |
Fix parsing and building of SELECT ... INTO @var1 [,@var2...]
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
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"')); |