Open
Description
Description
The getColumnMeta function currently returns a small subset of the flags from the native mysql library as shown here:
php-src/ext/pdo_mysql/mysql_statement.c
Lines 790 to 801 in 6727f54
php-src/ext/mysqlnd/mysqlnd_enum_n_def.h
Lines 337 to 353 in 6727f54
These flags provide valuable information about the column returned and how to potentially process it. For instance, one might need to treat binary strings different from non-binary strings. Without the binary flag, it is impossible to know whether or not a string might require special handling without examining the values of the result set. Additionally, consider adding a native_flags attribute which returns the unmodified numeric value of the flags from the mysql library.