| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…VIEW Signed-off-by: predictor2718 <245527909+predictor2718@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## 5.11.x #656 +/- ##
=========================================
Coverage 96.92% 96.93%
- Complexity 2316 2320 +4
=========================================
Files 71 71
Lines 5110 5114 +4
=========================================
+ Hits 4953 4957 +4
Misses 157 157
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #655.
CreateStatement::build() glued the built SELECT directly to the trailing body
tokens when rebuilding a CREATE VIEW ... AS SELECT ... UNION ..., producing
invalid SQL like ... WHERE 3 = 3union all (...).
Insert a single space between $builtStatement and the body tokens only when
both sides are non-empty and neither boundary character is whitespace, so the
paren-wrapped LHS case (AS (select ...) union all (...)) doesn't get a double
space.
Includes a regression test in tests/Builder/CreateStatementTest.php.
Also addresses phpMyAdmin reports:
Signed-off-by: predictor2718 245527909+predictor2718@users.noreply.github.com