PostgreSQL error in votingapi_generate_votes_form_submit
jaydub - May 3, 2008 - 17:54
| Project: | Voting API |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
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.
| Attachment | Size |
|---|---|
| votingapi_generate.module.patch | 1.06 KB |

#1
oops botched the patch. use this one instead