Skip to content

Add model casts for numeric columns to fix pdo_mysql driver compatibility#1481

Merged
pjaudiomv merged 1 commit intomainfrom
pj/fix-pdo-mysql-driver-compat
Mar 21, 2026
Merged

Add model casts for numeric columns to fix pdo_mysql driver compatibility#1481
pjaudiomv merged 1 commit intomainfrom
pj/fix-pdo-mysql-driver-compat

Conversation

@pjaudiomv
Copy link
Copy Markdown
Member

pdo_mysql backed by libmysql returns all values as strings, causing strict type comparisons (=== 1) to fail. Adding explicit integer/float casts ensures correct types at the ORM level regardless of which MySQL PDO driver is in use. nd_pdo_mysql is the recommended backed by mysqlnd

@pjaudiomv pjaudiomv merged commit 573e43e into main Mar 21, 2026
7 checks passed
@pjaudiomv pjaudiomv deleted the pj/fix-pdo-mysql-driver-compat branch March 21, 2026 02:18
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.

2 participants