dimanche 17 juillet 2016

Return a Query-Callback result

If you want to just check if there is any row, use "SELECT COUNT(*) FROM ..." and retrieve the rows returned with cache_get_row_int (rowid 0). That way, you won't select ALL the data for nothing.

For now, if you want to have a function that returns 0/1 the only way is non-threaded queries. In R40, there'll be support for references by the way.

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.



Return a Query-Callback result

Aucun commentaire:

Enregistrer un commentaire