@@ 937-949 (lines=13) @@ | ||
934 | * |
|
935 | * @return string |
|
936 | */ |
|
937 | public function AliasIdentificationVariable() |
|
938 | { |
|
939 | $this->match(Lexer::T_IDENTIFIER); |
|
940 | ||
941 | $aliasIdentVariable = $this->lexer->token['value']; |
|
942 | $exists = isset($this->queryComponents[$aliasIdentVariable]); |
|
943 | ||
944 | if ($exists) { |
|
945 | $this->semanticalError("'$aliasIdentVariable' is already defined.", $this->lexer->token); |
|
946 | } |
|
947 | ||
948 | return $aliasIdentVariable; |
|
949 | } |
|
950 | ||
951 | /** |
|
952 | * AbstractSchemaName ::= fully_qualified_name | aliased_name | identifier |
|
@@ 996-1008 (lines=13) @@ | ||
993 | * |
|
994 | * @return string |
|
995 | */ |
|
996 | public function AliasResultVariable() |
|
997 | { |
|
998 | $this->match(Lexer::T_IDENTIFIER); |
|
999 | ||
1000 | $resultVariable = $this->lexer->token['value']; |
|
1001 | $exists = isset($this->queryComponents[$resultVariable]); |
|
1002 | ||
1003 | if ($exists) { |
|
1004 | $this->semanticalError("'$resultVariable' is already defined.", $this->lexer->token); |
|
1005 | } |
|
1006 | ||
1007 | return $resultVariable; |
|
1008 | } |
|
1009 | ||
1010 | /** |
|
1011 | * ResultVariable ::= identifier |