HomeDevCentral

Fetch database rows as both an associative and a numeric array

Description

Fetch database rows as both an associative and a numeric array

Summary:
By default, keruald/database use associative array,
but the Obsidian code handle count(*) like this:

return ($row[0] == 1);

An alternative could be to use queryScalar() instead of query() for those.

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

Details

Provenance
derecksonAuthored on Sun, Oct 19, 21:58
derecksonPushed on Sun, Oct 19, 22:04
Differential Revision
D3779: Fetch database rows as both an associative and a numeric array
Parents
rOBSIDIAN37acd8f09447: Switch Smarty from bundled library to Composer package
Branches
Unknown
Tags
Unknown