Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mysql fetch_field* return type #11009

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

MoonE
Copy link
Contributor

@MoonE MoonE commented Jun 7, 2024

While a table column name cannot be null, it is still possible to use an empty string as an alias. In this case name is an empty string.

SELECT'';

def and catalog are constants, and max_length is always 0 since php 8.1
https://www.php.net/manual/en/mysqli-result.fetch-field.php#refsect1-mysqli-result.fetch-field-returnvalues

@MoonE MoonE force-pushed the mysqli-fetch-field branch 3 times, most recently from f1ac0c3 to 4dac342 Compare June 7, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant