Add support for field metadata retrieval.

This might only be used for MySQL but is required to preserve
table/column encodings & comments.