Index: mollom.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.install,v
retrieving revision 1.26
diff -u -p -r1.26 mollom.install
--- mollom.install	19 Sep 2010 02:45:46 -0000	1.26
+++ mollom.install	20 Sep 2010 18:51:37 -0000
@@ -503,6 +503,13 @@ function mollom_update_7005() {
   }
 
   // Change {mollom}.quality from varchar into float.
+  // Databases may throw a conversion error if the value is not a number. Since
+  // we previously stored an empty string for 'quality', we need to ensure that
+  // all rows contain numbers.
+  db_update('mollom')
+    ->fields(array('quality' => 0))
+    ->condition('quality', '')
+    ->execute();
   db_change_field('mollom', 'quality', 'quality', array(
     'type' => 'float',
     'size' => 'tiny',
