summaryrefslogtreecommitdiffstats
path: root/src/Statements
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-29 12:50:08 +0200
committerWilliam Desportes <williamdes@wdes.fr>2019-05-29 12:51:45 +0200
commit92e97d6234645e65bfafcf4b53d98838e57f2d44 (patch)
tree70474f190be4af52daac8d2ac1b237645242b9f5 /src/Statements
parentbb6a2b0435ad64c02bd26768f0fddddd2fb27ffe (diff)
downloadsql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.zip
sql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.tar.gz
sql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.tar.bz2
revert usage of new array syntax []
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Related-to: 930a860bc7f0684c45babd012070f88a9505d427, 5d5089a259d0195c4a1e4aa3588c31c839954067 Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'src/Statements')
-rw-r--r--src/Statements/InsertStatement.php2
-rw-r--r--src/Statements/LoadStatement.php4
2 files changed, 3 insertions, 3 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);