Bug #95913 | Commented lines deleted when applying CREATE VIEW | ||
---|---|---|---|
Submitted: | 21 Jun 2019 8:04 | Modified: | 2 Oct 2019 10:03 |
Reporter: | Clive Wickham | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S3 (Non-critical) |
Version: | 8.0.15, 8.0.16 | OS: | Windows (10) |
Assigned to: | CPU Architecture: | Any | |
Tags: | create view, deleted comments |
[21 Jun 2019 8:04]
Clive Wickham
[21 Jun 2019 8:11]
MySQL Verification Team
Hello Clive Wickham, Thank you for the report. regards, Umesh
[2 Oct 2019 10:03]
Mike Lischke
I misunderstood the bug description as being about our code formatter. But actually this bug is about a behavior caused by the server. It's not Workbench which strips out comments, it's the server. Try creating a view with such a comment in the command line client and then do a `show create view ...`, which will show you the code without comments (and line breaks btw. which also are removed). Hint: if you want to comment out parts only temporarily then don't use the view editor, which re-reads the view text from the server and formats it (and hence no longer has the temporarily commented out code). Instead use a plain SQL editor (but you may have to add a delimiter command then) which simply executes the SQL without re-reading what the server stored.