Closed (fixed)
Project:
Views data export
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2012 at 01:17 UTC
Updated:
18 Sep 2012 at 08:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
dsnoeck commentedSame issue with D 7.14 and PostgreSQL.
Side note: I have installed Drupal from the command line with Drush.
Comment #2
jamsilver commentedHmm, it would appear that the technique we're using to auto-detect what mysql's max_allowed_packet size is not exactly compatible with all versions / alternatives of database backend. This code was added in #1421828: Warn if max allowed packet is too small.
I guess is the 'SHOW VARIABLES' syntax simply is unsupported in PostgreSQL and SQLITE.
At the very least we probably need to pop a try/catch around that line so if the db backend does throw an exception we don't cause a WSOD. Patches welcome!
Comment #3
robertwb commentedThanks jamsilver - I commented out the offending line in order to get mine to survive the fatal errors, but yours is of course the more corrtrect solution.
r.b.
Comment #4
ben coleman commentedI ran into this after upgrading to the latest -dev on a PostgreSQL-based system. Not only is the SQL code MySQL-specific, the need is MySQL-specific - from what I've been able to find out PostgreSQL doesn't have the problem that this checks for. The attached patch checks the database type and only runs the code if MySQL is being used. I set it up as a switch/case so if there is similar code needed for other database types, there's a place to put it in.
Bumped the priority to major as this kills the status page on PostgreSQL.
Comment #5
tricasse commentedSame for a site installed with SQLite from the beginning. The patch in #4 works for me.
Comment #6
steven jones commentedGoing to get the testbot to review the patch...
Comment #7
steven jones commentedPatch looks good.
Comment #8
steven jones commentedThanks so much for the patch, fixed in 7.x-3.x.