Add support for all flags from mysql in the PDO MySql driver in the getColumnMeta function.
@SakiTakamachi đang làm issue này rồi.
Từ ngày 24/7/2024.
- Ngôn ngữ chính
- C
- Star
- 40.4k
- Fork
- 8.1k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 96
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.