php / php/php-src

Add support for all flags from mysql in the PDO MySql driver in the getColumnMeta function.

Aperta
#15,093 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@SakiTakamachi ci sta già lavorando.

Dal 24/7/2024.

Extension: pdo_mysql Feature Status: Needs Triage
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.