Comments

rocket777 created an issue. See original summary.

rocket777’s picture

This patch makes the eid column a primary key.

rocket777’s picture

Status: Active » Needs review
jrglasgow’s picture

patch in #2 works for me

Delphine Lepers’s picture

Patch #2 works fine, I am submitting a small change: adding a condition for those who had added an index manually

Delphine Lepers’s picture

StatusFileSize
new1.92 KB

My previous patch failed on PHP 7.3 plus Mysql 5.7
Here is a new version that should be compatible. I am creating a new field. In the hook_update i add a workaround suggested in https://www.drupal.org/node/2615496 and in D7 api

heyddi’s picture

Hi!

I have create a new patch to also add primary key on the temp table created during export.

shura80’s picture

Hello, regarding patch #6 it could happen that the 'views_data_export_object_cache' table is not empty during the table update to add the new 'kid' column, and this would produce an SQL error:

SQLSTATE[22004] Null value not allowed: 1138 Invalid use of Null value

Temporary tables could have still some records that still have been not deleted by the views_data_export_garbage_collect() function called in hook_cron.

So I think it could be more appropriate to do all the job in views_data_export_update_7302 and I propose the attached patch based on patch #6 to ensure that all temporary tables have been cleaned by garbage collector before executing any operation on them.

shura80’s picture

shura80’s picture

StatusFileSize
new1.89 KB
sadysierralta’s picture

Patch seems to work great!

sadysierralta’s picture

Status: Needs review » Reviewed & tested by the community
steven jones’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Sorry for the lack of attention to your issue, please accept my apologies.

Drupal 7 is going to be end-of-life'd by the community in approximately 1 month.

As such, I am closing all non-critical looking, non-PHP compatibility issues for Views Data Export to tidy up the issue queues and reduce the noise. You can read about this on #3492246: Close down Drupal 7 issues.

If you feel like this issue has been closed by mistake, please do comment about re-opening it.
If you feel like the ticket is still relevant for the 8.x-1.x version of the module, then please search for a duplicate issue first, and if there really isn't one (and you've looked properly) then change the version on the ticket and re-open.

Thanks to everyone involved in this issue: for reporting it, and moving it along, it is truly appreciated.
The Drupal community wouldn't be what it is today without your involvement and effort, so I'm sorry that we couldn't get this issue resolved. Hopefully we'll work together in a future issue though, and get that one resolved :)