1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Report that FROM and JOIN do not support Subqueries

This commit is contained in:
SimonHeimberg 2016-11-22 09:03:01 +01:00 committed by Marco Pivetta
parent 7523513be5
commit f5d4db7d9c
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -1715,6 +1715,9 @@ class Parser
*/
public function RangeVariableDeclaration()
{
if ($this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS) && $this->lexer->glimpse()['type'] === Lexer::T_SELECT) {
$this->semanticalError('Subquery is not supported here', $this->lexer->token);
}
$abstractSchemaName = $this->AbstractSchemaName();
$this->validateAbstractSchemaName($abstractSchemaName);