microsoft / ODBC-Specification

Microsoft ODBC Specification
Other
121 stars 40 forks source link

3.4 default value for String format #112

Closed deata closed 7 years ago

deata commented 7 years ago

Text/Plain ?

mikepizzo commented 7 years ago

should probably default to empty string, so client can differentiate between "Text/Plain" and "Unknown". This is consistent with how Content-Type is handled in HTTP.

mikepizzo commented 7 years ago

fixed in spec:

A new SQLCHAR*-valued descriptor field, SQL_DESC_MIME_TYPE, is added to [ALL] descriptors to specify the format of a field or parameter whose SQL_DESC_TYPE specifies a string or binary type. The value of this descriptor field is the mime type of the data (i.e., application/json, application/xml,…), or an empty string if the field or parameter is not a string or binary type, or if the format is not known.