Skip to content

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

Open
@hetao29

Description

@hetao29

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions