Bug #53538 | Tables/views missing from generated tests where views are used in a query | ||
---|---|---|---|
Submitted: | 10 May 2010 11:43 | ||
Reporter: | John Embretsen | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Tools: Random Query Generator | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Bernt Marius Johnsen | CPU Architecture: | Any |
[10 May 2010 11:43]
John Embretsen
[10 May 2010 11:50]
John Embretsen
Incomplete MTR test file generated by the RQG
Attachment: 1273480779.test (application/octet-stream, text), 3.48 KiB.
[10 May 2010 11:52]
Philip Stoev
It seems the reason for this is that the Simplifier is not set up to handle views at all. In the absence of a full-blown parser, it relies on a regexp in order to extract table names from the query. Hopefully if the regexp is fixed to allow for view names, a perl one-liner can be used to add both the underlying table and the view to the list of objects to be dumped. Column-level simplification may not work as expected, but at least the final test should be complete and runnable.