diff options
author | Michal Čihař <michal@cihar.com> | 2016-03-02 14:22:18 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-03-02 14:45:39 +0100 |
commit | ad0e75faa6f6943d013f23d0d1ca31b4781e7b79 (patch) | |
tree | a69f8dde727a1e44314bbbb8d813a1f47f17d96e /src | |
parent | 415d44d1d334f9dfca2f036890860b37dd1966fe (diff) | |
download | sql-parser-ad0e75faa6f6943d013f23d0d1ca31b4781e7b79.zip sql-parser-ad0e75faa6f6943d013f23d0d1ca31b4781e7b79.tar.gz sql-parser-ad0e75faa6f6943d013f23d0d1ca31b4781e7b79.tar.bz2 |
Fixed parsing of table with DEFAULT and COMMENT.
Fixes #39
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/Expression.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Components/Expression.php b/src/Components/Expression.php index 0b9f215..8d6471c 100644 --- a/src/Components/Expression.php +++ b/src/Components/Expression.php @@ -254,6 +254,9 @@ class Expression extends Component continue; } $isExpr = true; + } elseif ($brackets === 0 && count($ret->expr) > 0) { + /* End of expression */ + break; } } |