HomeDevCentral

Use associative arrays by default for MySQLi results
bf2da29641a7Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Use associative arrays by default for MySQLi results

Summary:
The MySQLi extension supports three different fetch modes
to represent a row as an array:

  • associative keys
  • numeric keys
  • both of them

This change switches from the default "both of them"
to associative keys to encourage more expressive code,
and ease code maintenance.

The queryScalar method will seek the first key of the array accordingly.

Test Plan: Unit tests added and updated accordingly for MySQLi

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3207

Details

Provenance
derecksonAuthored on Jun 22 2023, 21:25
derecksonPushed on Jul 1 2023, 20:39
Parents
rKERUALD6ea0765d84c0: Allow to mock DatabaseEngine
Branches
Unknown
Tags
Unknown

Event Timeline