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

mysql bigint field return a string in after/before Array, should return int in php I think. #125

Open
hetao29 opened this issue Aug 28, 2024 · 1 comment

Comments

@hetao29
Copy link

hetao29 commented Aug 28, 2024

Please provide the following details.

  • Operating System: ubuntu 22.04
  • PHP Version: 8.3.7
  • php-mysql-replication Version: 8.1.0
  • *mysql version (SELECT VERSION();): 8.4.0

Because

** PDO set \PDO::ATTR_STRINGIFY_FETCHES => false, the bigint will return int.
PDO::ATTR_STRINGIFY_FETCHES

** Mysqli also return int.
MYSQLI_OPT_INT_AND_FLOAT_NATIVE

** if >PHP_INT_MAX return string or return int, the pdo/mysqli do this.

hetao29 added a commit to hetao29/php-mysql-replication that referenced this issue Aug 30, 2024
@hetao29
Copy link
Author

hetao29 commented Aug 30, 2024

hetao29@418625f

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

No branches or pull requests

1 participant