Skip to content

v3.2.0

Latest

Choose a tag to compare

@paragonie-security paragonie-security released this 18 Nov 15:43
1b7c620

What's Changed

  • Remove getResultsStrictTyped and impossible return types by @kamil-tekiela in #173
  • Improve mutation testing coverage by @paragonie-security in #175
  • handle PDO::FETCH_COLUMN in row() (#174) by @paragonie-security in #176
  • Deep review fixes by @paragonie-security in #178
    • Bulk inserts preserve column bindings. insertMany() now matches values by column name, regardless of each row’s key order, and rejects rows with different columns. This prevents values such as tenant IDs and resource IDs from getting swapped.
    • Updates and deletes preserve named parameters. Conditions supplied through EasyStatement retain their parameter names instead of being converted into positional values, keeping the query pointed at the intended rows.
    • Empty membership groups stay false. When empty IN lists are allowed, an otherwise empty orIn() group becomes 1 = 0, preventing it from broadening a filter to all rows.
    • Identifiers that normalize to empty are rejected. This includes NUL-only identifiers, with a regression test showing that such a delete condition cannot delete every row.
    • Duplicate normalized INSERT columns are rejected. Keys such as tenant_id and tenant_id cannot collapse into the same SQL column and undermine a trusted assignment.

Full Changelog: v3.1.1...v3.2.0