This module has the following code in views_calc_uninstall() in the .install file:

<?php
 db_query
("DROP TABLE {views_calc_fields}");
?>

This is causing issues with the uninstallation (table not removed) and re-installation (table already exists) of the module (I was getting a DatabaseSchemaObjectExistsException error).

Files: 
CommentFileSizeAuthor
#1 reinstallation_error-1972320-1.patch351 bytesBWPanda

Comments

BWPanda’s picture

Status:Active» Needs review
StatusFileSize
new351 bytes

Here's a patch that fixes this issue by removing the code in question (its functionality is already addressed by views_calc_schema().

BWPanda’s picture

Issue summary:View changes

Fixed code block

mgifford’s picture

Issue summary:View changes

I couldn't repeat this. The patch still applies, but I couldn't replicate the error.

Did you see the error in watchdog or in your mysql logs?

So this code here is redundant:
db_query("DROP TABLE {views_calc_fields}");

mgifford’s picture

Priority:Major» Normal