summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-07-01 15:09:11 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-07-01 15:09:11 +0000
commitd4570f032a59c229f369d75f87ced5282405582e (patch)
treedead7ac56108a04460ed333abf7821d84e9f6eea /modules/poll
parent435e4e0310b6f7000d101f877a87f397b13219a3 (diff)
downloadbrdo-d4570f032a59c229f369d75f87ced5282405582e.tar.gz
brdo-d4570f032a59c229f369d75f87ced5282405582e.tar.bz2
#817216 follow-up by Stevel: Fixed database prefixes in poll_update_7001().
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll/poll.install b/modules/poll/poll.install
index 153aae78a..8fe8ef1b7 100644
--- a/modules/poll/poll.install
+++ b/modules/poll/poll.install
@@ -148,7 +148,7 @@ function poll_update_7001() {
db_add_field('poll_votes', 'chid', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0));
db_add_index('poll_votes', 'chid', array('chid'));
db_update('poll_votes')
- ->expression('chid', DatabaseConnection::prefixTables('COALESCE((SELECT chid FROM {poll_choices} c WHERE {poll_votes}.chorder = c.chorder AND {poll_votes}.nid = c.nid), 0)'))
+ ->expression('chid', Database::getConnection()->prefixTables('COALESCE((SELECT chid FROM {poll_choices} c WHERE {poll_votes}.chorder = c.chorder AND {poll_votes}.nid = c.nid), 0)'))
->execute();
// Delete invalid votes.
db_delete('poll_votes')->condition('chid', 0)->execute();