Bug #49565 _field and the rest should assert instead of returning an empty string
Submitted: 9 Dec 2009 14:59 Modified: 14 Dec 2009 15:15
Reporter: Philip Stoev Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: Random Query Generator Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Bernt Marius Johnsen CPU Architecture:Any

[9 Dec 2009 14:59] Philip Stoev
Description:
We have situations where _field or some other RQG built-in is not capable of returning a valid value, so we return an empty string, which almost certainly does not make sense in the grammar, producing an SQL syntax error, while the test continues to run.

An example would be using _fields_indexed with a ZZ file that does not define any indexes.

Such situations must be converted into assertions. This way, both the grammar and the RQG itself will be tested. In other words, the grammar should not be allowed to run with _fields_indexed if the ZZ file does not specify any indexes, and the RQG should never return an empty _tables due to some internal problem.

How to repeat:
see above
[14 Dec 2009 15:15] Bernt Marius Johnsen
Done