[TYPO3-dev] New DB API function for queries that expect just a single result row

David Bruchmann typo3-dev at bruchmann-web.de
Thu Sep 10 13:04:10 CEST 2009


Hi Jo,

> 
> I still would prefer to introduce exec_SELECTgetSingleRow() to get rid of
> the additional "if", since the developer already made the decision "if" he
> wants a single row himself when calling the function.
> 
> Just like getRows() it will contain all necessary function calls to execute
> the query, get the result row, free the result and return the data.
> 
> Any comments on this before I file a bugtracker entry?
> 

Just an idea: a parameter [0|1] to determine if the result should be 
returned indexed by names or numbers.

Best Regards
David




More information about the TYPO3-dev mailing list