[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[190] trunk/0.4/abstract/cs_singleTableHandler. a
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2011-01-06 01:38:47
|
Revision: 190 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=190&view=rev Author: crazedsanity Date: 2011-01-06 01:38:41 +0000 (Thu, 06 Jan 2011) Log Message: ----------- Default ordering. /abstract/cs_singleTableHandler.abstract.class.php: * get_records(): -- set default "ORDER BY" clause to be the primary key's column. Modified Paths: -------------- trunk/0.4/abstract/cs_singleTableHandler.abstract.class.php Modified: trunk/0.4/abstract/cs_singleTableHandler.abstract.class.php =================================================================== --- trunk/0.4/abstract/cs_singleTableHandler.abstract.class.php 2011-01-06 00:59:29 UTC (rev 189) +++ trunk/0.4/abstract/cs_singleTableHandler.abstract.class.php 2011-01-06 01:38:41 UTC (rev 190) @@ -182,7 +182,7 @@ } } - $orderByStr = ''; + $orderByStr = ' ORDER BY '. $this->pkeyField; if(is_string($orderBy) && strlen($orderBy)) { $orderByStr = ' ORDER BY '. $orderBy; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |