[TYPO3-core] RFC #11916: Feature: New TYPO3_DB method for queries that expect just a single result row

JoH asenau info at cybercraft.de
Sun Nov 14 16:24:22 CET 2010


>> comment for $numIndex was wrong. Attached is v3 which fixes this.
> 
> +1 by reading with two questions/remarks:
> 1. The debug line could be copied from exec_SELECTgetRows() (three
> lines with {})
> 2. if $output is initialized outside the if (!$this->sql_error()), how
> can I distinguish between an empty result set and an error? (if
> exec_SELECTgetRows() returns NULL something must have gone wrong)

Attached is v4 which fixes the issues.

Thx for the reviews

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11916_v4.diff
Type: application/octet-stream
Size: 1923 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101114/cd53b88b/attachment.obj>


More information about the TYPO3-team-core mailing list