? dif
cvs diff: Diffing .
cvs diff: Diffing contrib
cvs diff: Diffing core
Index: core/menu.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/install_profile_api/core/Attic/menu.inc,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 menu.inc
--- core/menu.inc	24 Nov 2008 06:30:03 -0000	1.1.4.2
+++ core/menu.inc	14 Dec 2008 05:20:19 -0000
@@ -27,7 +27,7 @@ function install_menu_create_menu($title
  */
 function install_menu_get_mid($path) {
   menu_rebuild(); // not sure if this is needed, but we've seen problems without it
-  return db_result(db_query("SELECT mid FROM {menu} WHERE path = '%s' LIMIT 1", $path));	
+  return db_result(db_query_range("SELECT mid FROM {menu} WHERE path = '%s'", $path, 0, 1));	
 }
 
 /**
@@ -37,7 +37,7 @@ function install_menu_get_mid($path) {
  *   The database ID of the root menu that matches the $title
  */
 function install_menu_get_root_menu($title) {
-  return db_result(db_query("SELECT mid FROM {menu} WHERE title = '%s' LIMIT 1", $title));	
+  return db_result(db_query_range("SELECT mid FROM {menu} WHERE title = '%s'", $title, 0, 1));	
 }
 
 /**
Index: core/taxonomy.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/install_profile_api/core/Attic/taxonomy.inc,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 taxonomy.inc
--- core/taxonomy.inc	24 Nov 2008 06:30:03 -0000	1.1.4.2
+++ core/taxonomy.inc	14 Dec 2008 05:20:19 -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.4.3
diff -u -p -r1.1.4.3 user.inc
--- core/user.inc	24 Nov 2008 07:10:51 -0000	1.1.4.3
+++ core/user.inc	14 Dec 2008 05:20:19 -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];
 }
cvs diff: Diffing install_profile_wizard
