You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-11-03 11:53:04 +03:00
Improved documentation.
Updated sql-parser library to udan11/sql-parser@0bff48a. Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
This commit is contained in:
@@ -500,7 +500,7 @@ class Query
|
||||
* 0 only for the clause
|
||||
* 1 for everything after
|
||||
* If string, the name of the first clause that
|
||||
* shouldn't be included.
|
||||
* should not be included.
|
||||
* @param bool $skipFirst Whether to skip the first keyword in clause.
|
||||
*
|
||||
* @return string
|
||||
@@ -510,44 +510,44 @@ class Query
|
||||
|
||||
/**
|
||||
* The index of the current clause.
|
||||
* @var int
|
||||
* @var int $currIdx
|
||||
*/
|
||||
$currIdx = 0;
|
||||
|
||||
/**
|
||||
* The count of brackets.
|
||||
* We keep track of them so we won't insert the clause in a subquery.
|
||||
* @var int
|
||||
* @var int $brackets
|
||||
*/
|
||||
$brackets = 0;
|
||||
|
||||
/**
|
||||
* The string to be returned.
|
||||
* @var string
|
||||
* @var string $ret
|
||||
*/
|
||||
$ret = '';
|
||||
|
||||
/**
|
||||
* The clauses of this type of statement and their index.
|
||||
* @var array
|
||||
* @var array $clauses
|
||||
*/
|
||||
$clauses = array_flip(array_keys($statement::$CLAUSES));
|
||||
|
||||
/**
|
||||
* Lexer used for lexing the clause.
|
||||
* @var Lexer
|
||||
* @var Lexer $lexer
|
||||
*/
|
||||
$lexer = new Lexer($clause);
|
||||
|
||||
/**
|
||||
* The type of this clause.
|
||||
* @var string
|
||||
* @var string $clauseType
|
||||
*/
|
||||
$clauseType = $lexer->list->getNextOfType(Token::TYPE_KEYWORD)->value;
|
||||
|
||||
/**
|
||||
* The index of this clause.
|
||||
* @var int
|
||||
* @var int $clauseIdx
|
||||
*/
|
||||
$clauseIdx = $clauses[$clauseType];
|
||||
|
||||
@@ -669,7 +669,7 @@ class Query
|
||||
|
||||
/**
|
||||
* Value to be returned.
|
||||
* @var string
|
||||
* @var string $ret
|
||||
*/
|
||||
$ret = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user