Merge pull request #11 from nyalldawson/binary_type

Report more accurate field type for OLE fields
This commit is contained in:
Evan Miller 2020-08-12 06:26:00 -04:00 committed by GitHub
commit bd6aa50f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2290,8 +2290,9 @@ static SQLSMALLINT _odbc_get_client_type(MdbColumn *col)
#endif // returns text otherwise
case MDB_TEXT:
case MDB_MEMO:
case MDB_OLE:
return SQL_VARCHAR;
case MDB_OLE:
return SQL_LONGVARBINARY;
default:
// fprintf(stderr,"Unknown type %d\n",srv_type);
break;