From dad56e6776d87e215feaa4af799c493b261e0117 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 27 Aug 2009 18:29:29 +0000 Subject: [PATCH] web: bugfix for drush logger assign command --- web/drupal/modules/logger/logger.drush.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/drupal/modules/logger/logger.drush.inc b/web/drupal/modules/logger/logger.drush.inc index 4f79a95..0ee0350 100644 --- a/web/drupal/modules/logger/logger.drush.inc +++ b/web/drupal/modules/logger/logger.drush.inc @@ -83,7 +83,7 @@ function _logger_assign($serial, $uid) { } else { db_query("UPDATE {logger_devices} SET uid = %d WHERE serial = %d", $uid, $serial); - db_query("UPDATE {logger_meters} SET uid = %d WHERE device = %d", $uid, $device); + db_query("UPDATE {logger_meters} SET uid = %d WHERE device = '%s'", $uid, $device); } if (!drush_get_error()) drush_log(dt('Successfully assigned uid: @uid to S/N: @serial', array('@uid' => $uid, '@serial' => $serial)), 'ok');