[33094] trunk/www/includes/common.inc

jmpp at macports.org jmpp at macports.org
Thu Jan 17 12:57:27 PST 2008


Revision: 33094
          http://trac.macosforge.org/projects/macports/changeset/33094
Author:   jmpp at macports.org
Date:     2008-01-17 12:57:26 -0800 (Thu, 17 Jan 2008)

Log Message:
-----------

Use the upper case convention for MySQL functions, no functional changes here.

NOTE: the ports_count() and categories_count() functions are very similar, I'll look into merging them.

Modified Paths:
--------------
    trunk/www/includes/common.inc

Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc	2008-01-17 20:54:38 UTC (rev 33093)
+++ trunk/www/includes/common.inc	2008-01-17 20:57:26 UTC (rev 33094)
@@ -110,7 +110,7 @@
 function ports_count() {
     global $portsdb_name;
 
-    $result = mysql_query("SELECT count(name) FROM $portsdb_name.portfiles") or die("Error: " . mysql_error());
+    $result = mysql_query("SELECT COUNT(name) FROM $portsdb_name.portfiles") or die("Error: " . mysql_error());
     if ($result) {
         $row = mysql_fetch_array($result);
         $count = $row[0];

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080117/daa4da77/attachment.html


More information about the macports-changes mailing list