diff options
author | Michal Čihař <michal@cihar.com> | 2017-02-06 12:15:05 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-02-06 12:15:05 +0100 |
commit | bead40dc670e715ed4309d343ef3d33f519d7446 (patch) | |
tree | 78b2362672c0934ce01af7559763bb20669be9c9 /src | |
parent | c5feb2eea5bdfd67c44afa69bb50fbeb182a1c15 (diff) | |
download | sql-parser-bead40dc670e715ed4309d343ef3d33f519d7446.zip sql-parser-bead40dc670e715ed4309d343ef3d33f519d7446.tar.gz sql-parser-bead40dc670e715ed4309d343ef3d33f519d7446.tar.bz2 |
Fix comment type
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Lexer.php | 2 | ||||
-rw-r--r-- | src/Utils/Query.php | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/Lexer.php b/src/Lexer.php index 627763b..06c3897 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -119,7 +119,7 @@ class Lexer extends Core * * @var string */ - public $delimiter; + public $delimiter = $DEFAULT_DELIMITER; /** * The length of the delimiter. diff --git a/src/Utils/Query.php b/src/Utils/Query.php index 6d1aa87..190166f 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -496,17 +496,17 @@ class Query /** * Gets a specific clause. * - * @param Statement $statement the parsed query that has to be modified - * @param TokensList $list the list of tokens - * @param string $clause the clause to be returned - * @param int|string $type The type of the search. - * If int, - * -1 for everything that was before - * 0 only for the clause - * 1 for everything after - * If string, the name of the first clause that - * should not be included. - * @param bool $skipFirst whether to skip the first keyword in clause + * @param Statement $statement the parsed query that has to be modified + * @param TokensList $list the list of tokens + * @param string $clause the clause to be returned + * @param integer|string $type The type of the search. + * If int, + * -1 for everything that was before + * 0 only for the clause + * 1 for everything after + * If string, the name of the first clause that + * should not be included. + * @param bool $skipFirst whether to skip the first keyword in clause * * @return string */ |