summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Statements/InsertStatement.php2
-rw-r--r--src/Statements/LoadStatement.php4
-rw-r--r--src/Utils/CLI.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Statements/InsertStatement.php b/src/Statements/InsertStatement.php
index c65931e..4e48c0d 100644
--- a/src/Statements/InsertStatement.php
+++ b/src/Statements/InsertStatement.php
@@ -195,7 +195,7 @@ class InsertStatement extends Statement
$this->into = IntoKeyword::parse(
$parser,
$list,
- ['fromInsert' => true]
+ array('fromInsert' => true)
);
$state = 1;
diff --git a/src/Statements/LoadStatement.php b/src/Statements/LoadStatement.php
index 6eb182a..422efc7 100644
--- a/src/Statements/LoadStatement.php
+++ b/src/Statements/LoadStatement.php
@@ -281,7 +281,7 @@ class LoadStatement extends Statement
$this->file_name = Expression::parse(
$parser,
$list,
- ['parseField' => 'file']
+ array('parseField' => 'file')
);
$state = 1;
} elseif ($state === 1) {
@@ -298,7 +298,7 @@ class LoadStatement extends Statement
&& $token->keyword === 'TABLE'
) {
++$list->idx;
- $this->table = Expression::parse($parser, $list, ['parseField' => 'table']);
+ $this->table = Expression::parse($parser, $list, array('parseField' => 'table'));
$state = 3;
} else {
$parser->error('Unexpected token.', $token);
diff --git a/src/Utils/CLI.php b/src/Utils/CLI.php
index 2acc81c..60af222 100644
--- a/src/Utils/CLI.php
+++ b/src/Utils/CLI.php
@@ -142,7 +142,7 @@ class CLI
if (isset($params['q'])) {
$lexer = new Lexer($params['q'], false);
$parser = new Parser($lexer->list);
- $errors = Error::get([$lexer, $parser]);
+ $errors = Error::get(array($lexer, $parser));
if (count($errors) === 0) {
return 0;
}