summaryrefslogtreecommitdiffstats
path: root/src/Statement.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Statement.php')
-rw-r--r--src/Statement.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Statement.php b/src/Statement.php
index 4186275..ec715c2 100644
--- a/src/Statement.php
+++ b/src/Statement.php
@@ -354,12 +354,23 @@ abstract class Statement
$parsedOptions = true;
}
} elseif ($class === null) {
- // Handle special end options in Select statement
- // See Statements\SelectStatement::$END_OPTIONS
if ($this instanceof Statements\SelectStatement
&& ($token->value === 'FOR UPDATE'
|| $token->value === 'LOCK IN SHARE MODE')
) {
+ // Handle special end options in Select statement
+ // See Statements\SelectStatement::$END_OPTIONS
+ $this->end_options = OptionsArray::parse(
+ $parser,
+ $list,
+ static::$END_OPTIONS
+ );
+ } elseif ($this instanceof Statements\SetStatement
+ && ($token->value === 'COLLATE'
+ || $token->value === 'DEFAULT')
+ ) {
+ // Handle special end options in SET statement
+ // See Statements\SetStatement::$END_OPTIONS
$this->end_options = OptionsArray::parse(
$parser,
$list,