Menu

#35 SQLloadAwards returns a result set with one row

v1.0 (example)
open
nobody
None
5
2013-12-26
2013-12-26
Ahasuerus
No

SQLloadAwards returns a result set with one row, which forces the calling code to use SQLloadAwards(award_id)[0][AWARD_TITLE] instead of just SQLloadAwards(award_id)[AWARD_TITLE] to get to the data. This is really a "Get" type of function rather than a "Load" function and should return just one row. Also, the SQL query uses ORDER BY even though there is only one row in the database, so ordering is not necessary.

Discussion

Anonymous
Anonymous

Add attachments
Cancel