[78951] branches/gsoc11-rev-upgrade/base/src/cregistry/file.c

cal at macports.org cal at macports.org
Fri May 27 16:06:35 PDT 2011


Revision: 78951
          http://trac.macports.org/changeset/78951
Author:   cal at macports.org
Date:     2011-05-27 16:06:35 -0700 (Fri, 27 May 2011)
Log Message:
-----------
rev-upgrade: Fixed wrong table name in some queries

Modified Paths:
--------------
    branches/gsoc11-rev-upgrade/base/src/cregistry/file.c

Modified: branches/gsoc11-rev-upgrade/base/src/cregistry/file.c
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/cregistry/file.c	2011-05-27 22:39:26 UTC (rev 78950)
+++ branches/gsoc11-rev-upgrade/base/src/cregistry/file.c	2011-05-27 23:06:35 UTC (rev 78951)
@@ -194,7 +194,7 @@
     int result;
 
     /* build the query */
-    query = strdup("SELECT id, path FROM registry.ports");
+    query = strdup("SELECT id, path FROM registry.files");
     if (!query) {
         return -1;
     }
@@ -299,7 +299,7 @@
     int result = 0;
     sqlite3_stmt* stmt = NULL;
     char* query;
-    query = sqlite3_mprintf("UPDATE registry.ports SET %q = '%q' WHERE id=%lld "
+    query = sqlite3_mprintf("UPDATE registry.files SET %q = '%q' WHERE id=%lld "
             "AND path='%q'", key, value, file->key.id, file->key.path);
     if (sqlite3_prepare(reg->db, query, -1, &stmt, NULL) == SQLITE_OK) {
         int r;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110527/b5ceeabf/attachment.html>


More information about the macports-changes mailing list