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