[php-src] Issue #15093: Add support for all flags from mysql in the PDO MySql driver in the getColumnMeta function.

From: Date: Wed, 24 Jul 2024 14:36:55 +0000
Subject: [php-src] Issue #15093: Add support for all flags from mysql in the PDO MySql driver in the getColumnMeta function.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247360@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15093 Author: deAtog ### Description The getColumnMeta function currently returns a small subset of the flags from the native mysql library as shown here: https://github.com/php/php-src/blob/6727f548b084ef063474949fb884c7770b77af29/ext/pdo_mysql/mysql_statement.c#L790-L801 Please add support for all applicable flags specified here: https://github.com/php/php-src/blob/6727f548b084ef063474949fb884c7770b77af29/ext/mysqlnd/mysqlnd_enum_n_def.h#L337-L353 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.

« previous php.bugs (#247360) next »