? dif
cvs diff: Diffing .
cvs diff: Diffing contrib
cvs diff: Diffing core
Index: core/taxonomy.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/install_profile_api/core/Attic/taxonomy.inc,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 taxonomy.inc
--- core/taxonomy.inc	23 Sep 2008 03:58:51 -0000	1.1.2.4
+++ core/taxonomy.inc	14 Dec 2008 05:20:24 -0000
@@ -8,7 +8,7 @@
  *   A text string identifying the vocabulary.
  */
 function install_taxonomy_get_vid($name) {
-  // Not guaranteed to be unique, hence the LIMIT.
+  // Not guaranteed to be unique, hence the range limit.
   return db_result(db_query_range("SELECT vid FROM {vocabulary} WHERE name = '%s'", $name, 0, 1));
 };
 
@@ -19,7 +19,7 @@ function install_taxonomy_get_vid($name)
  *   A term name to search on.
  */
 function install_taxonomy_get_tid($name) {
-  // Not guaranteed to be unique, hence the LIMIT.
+  // Not guaranteed to be unique, hence the range limit.
   return db_result(db_query_range("SELECT tid FROM {term_data} WHERE name = '%s'", $name, 0, 1));
 };
 
Index: core/user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/install_profile_api/core/Attic/user.inc,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 user.inc
--- core/user.inc	24 Nov 2008 07:10:46 -0000	1.1.2.6
+++ core/user.inc	14 Dec 2008 05:20:24 -0000
@@ -57,7 +57,7 @@ function install_add_role($name) {
 function install_get_rid($name) {
   static $roles = array();
   if (empty($roles[$name])) {
-    $roles[$name] = db_result(db_query("SELECT rid FROM {role} WHERE name ='%s' LIMIT 1", $name));
+    $roles[$name] = db_result(db_query_range("SELECT rid FROM {role} WHERE name ='%s'", $name, 0, 1));
   }
   return $roles[$name];
 }
