Download & Extend

PostgreSQL error in votingapi_generate_votes_form_submit

Project:Voting API
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Was testing out generating votes for testing with the
votingapi generate module.

In votingapi_generate_votes_form_submit() there is a
problem with the code that attempts to reset the sequences
table. Only MySQL uses the sequences table in Drupal as
PostgreSQL allows for creating a SEQUENCE type.

Attached patch adds a db_type switch to call the proper
sequence reset function.

AttachmentSize
votingapi_generate.module.patch1.06 KB

Comments

#1

oops botched the patch. use this one instead

AttachmentSize
votingapi_generate.module.patch 1.07 KB

#2

Status:needs review» closed (won't fix)

Support for the 5.x branch of VotingAPI has ended with the release of Drupal 7 and the upcoming release of VotingAPI 7.x-2.4.

nobody click here