You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Platform value quoting: each platform states its policy, and the driver rollout #260
PlatformInterface already requires quoteValue(), but AbstractPlatform also declared it, with a fallback that escaped the value without consulting the driver. That fallback is the path taken while a connection is not open, so an untrusted value silently received dialect-agnostic backslash escaping instead of a refusal. Each platform now states its own policy and refuses when its driver cannot answer.
The same change stops Select routing limit and offset through quoteValue(), which produced LIMIT '10'. A limit is a non-negative integer, not a value: SQL Server's OFFSET n ROWS and Oracle's OFFSET/FETCH reject a string, and MySQL, PostgreSQL and SQLite accept one only by coercing an unknown literal. The prepared path already bound these as integers.
sqlite and pgsql each lock a phpdb snapshot from before RuntimeException::forVulnerablePlatformQuote() existed, so neither change compiles against what they currently resolve. Bumping them to ^0.6.x-dev exposes pre-existing drift that the required Mago gate rejects: 19 analyzer errors and 1 lint warning in sqlite, 28 analyzer errors in pgsql, none of them in AdapterPlatform. Each needs a bring-onto-core change first, then the quoting change on top.
sqlite also declares a $resource property it never assigns, so its platform has never consulted the driver it was constructed with.
Activity