--- glossary.install	2008-06-29 14:08:40.149859007 +0200
+++ glossary.install_patched	2008-06-29 14:08:24.829858919 +0200
@@ -12,7 +12,7 @@
  */
 function glossary_update_5100() {
   $ret = array();
-  $ret[] = update_sql("UPDATE {blocks} SET delta=0 WHERE module='glossary' AND delta=999");
+  $ret[] = update_sql("UPDATE {blocks} SET delta=0 WHERE module='glossary' AND delta='999'");
 
   return $ret;
 }
@@ -23,7 +23,7 @@
  */
 function glossary_update_5101() {
   $ret = array();
-  $ret[] = update_sql("DELETE FROM {blocks} WHERE module='glossary' AND (delta<999 AND delta>0)");
+  $ret[] = update_sql("DELETE FROM {blocks} WHERE module='glossary' AND (delta<'999' AND delta>'0')");
 
   return $ret;
 }
@@ -175,4 +175,4 @@
 
   watchdog('Glossary', t('Glossary module uninstalled by uid !user.', array('!user' => $user->uid)));
   drupal_set_message(t('The Glossary module has been uninstalled. You will still need to decide what to do with vocabularies that were used.'), 'warning');
-}
\ No newline at end of file
+}
