Install script fails due to misplaced break in switch
apsivam - June 14, 2007 - 04:56
| Project: | Views Argument API |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
I get "Views Argument API tables could not be created." error when activating the module.
Upon inspecting I found you set the break statement before creating second table for mysql and mysqli in the script (line no 16 on views_argument_api.install file). I hope this should come after creating the second table.

#1
patch file attached for the above mentioned problem
#2
I had the same problem with installing the 2007-Jun-11 Views Argument API release and the above patch fixed it for me.
#3
Patch in #1 worked here too so +1.
Bumping priority up to critical as the module will not work out of the box unless this bug is fixed.
#4
Tnx that fix worked!
#5
Thanks for posting the fix! I have one more minor change for postgres users... we need to change the type of column views_argument_api_args.api_values from "longtext" to "text", since there is no longtext in postgres. I've attached another patch file with both fixes.
#6
Thanks. Fixed in 5.x-1.5.
#7
Marking fixed.
#8