Bug #29394 extend syntax of --enable_metadata command of mysqltest language
Submitted: 27 Jun 2007 16:57 Modified: 19 Jun 2009 12:26
Reporter: Konstantin Osipov (OCA) Email Updates:
Status: Won't fix Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[27 Jun 2007 16:57] Konstantin Osipov
Description:
Right now --enable-metadata enables all the metadata of result sets:
+Catalog        Database        Table   Table_alias     Column  Column_alias    Type    Length  Max length      Is_null Flags
+Decimals       Charsetnr
+def                                    Table   253     42      7       Y       0       31      8
+def                                    Op      253     3       5       Y       0       31      8
+def                                    Msg_type        253     3       6       Y       0       31      8
+def                                    Msg_text        253     85      27      Y       0       31      8

Sometimes for testing purposes one is interested only in some columns, not in all metadata.

Is it possible to extend this syntax to specify which columns should be output?

Example:

--enable_metadata.charset
8
8
8
8

That will simplify analysis of the output and maintenance of tests (so that one doesn't have to go over all test cases and update them when metadata changes for all output for some reason.

How to repeat:
Use --enable_metadata

Suggested fix:
Extend --enable_metadata syntax.