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 D3779
Fetch database rows as both an associative and a numeric array dereckson on Sun, Oct 19, 22:03. Authored by Tags None Referenced Files None Subscribers None
Details By default, keruald/database use associative array, return ($row[0] == 1); An alternative could be to use queryScalar() instead of query() for those.
Diff Detail
|