MTR testcase creation fails for views
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Random Query Generator |
New
|
Undecided
|
Unassigned |
Bug Description
Seen in an MTR testcase:
FROM vO_0 AS alias1
Result of MTR execution:
failed: 1146: Table 'test.vO_0' doesn't exist
In the original server data dir, the view is there:
mysql> show create view vO_0\G
*******
Create View: CREATE ALGORITHM=UNDEFINED DEFINER=
y`,`O`.
latin1` AS `col_varchar_
.`col_date` AS `col_date`
col_varchar_
character_
collation_
1 row in set (0.01 sec)
Question: is this a duplicate of bug #792138 maybe? Or is it an issue related specifically to views?
This is the same as http:// bugs.mysql. com/bug. php?id= 53538.
Philip suggested that a regexp fix and a Perl one-liner could fix part of the problem.
So far I have been using the workaround of using separate scripts in combination with mysqldump in order to get views' definitions, the definitions of their underlying tables, and the data therein.