summaryrefslogtreecommitdiffstats
path: root/src/Utils/Query.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-03 21:18:10 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-04 23:41:52 +0300
commitb3eff80030f9bd6d90e65360eb89e18a1be298b2 (patch)
treedb420fef27f24856f4cfaeee008104fdfcb77942 /src/Utils/Query.php
parent4dabcc2ae266c022e44294bfbe3344b05e66e266 (diff)
downloadsql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.zip
sql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.tar.gz
sql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.tar.bz2
The context depends on the SQL mode.
Implemented a few more builders. Improved some fragments and statement types. Fixed the noAlias option in FieldFragment. Reordered CREATE statements's options. Updated contexts definitions. Fixed typos. Improved tests.
Diffstat (limited to 'src/Utils/Query.php')
-rw-r--r--src/Utils/Query.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index 11a08d0..f741620 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -531,7 +531,7 @@ class Query
if ($onlyType) {
return static::getClause($statement, $list, $old, -1, false) . ' ' .
- $new . ' ' . static::getCLause($statement, $list, $old, 0) . ' ' .
+ $new . ' ' . static::getClause($statement, $list, $old, 0) . ' ' .
static::getClause($statement, $list, $old, 1, false);
}