summaryrefslogtreecommitdiffstats
path: root/tests/Components/IntoKeywordTest.php
diff options
context:
space:
mode:
authorDeven Bansod <devenbansod.bits@gmail.com>2016-09-28 11:48:10 +0530
committerDeven Bansod <devenbansod.bits@gmail.com>2016-09-28 11:48:10 +0530
commit31e346b48ad1e6ecd2edf271f2373802a08a374a (patch)
tree6905f888bbe76d4cad52454c327a6dd5dbcb37d2 /tests/Components/IntoKeywordTest.php
parentc2d9745b21f41f673bd7c314b29ba41e90d78fd1 (diff)
downloadsql-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.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"'));