Loving the module. Thanks.
I was just saving a revision after cloning an attachment and got this error:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'data' at row 1: ...

I noticed in the DB schema that the 'data' type is text.

'data' => array(
'description' => 'The export data of the view when the revision was created.',
'type' => 'text',
'size' => 'normal',
'not null' => TRUE,
),

So I thought, "let's make it bigger."
I updated my DB changing the 'data' type to longtext, and the revision saved just fine.

Does that sound reasonable?
As the max size of text is 64 Kilobytes and longtext allows upto 4 Gigabytes. I think that's a safe change if the only concern is avoiding the 'data too long' error.

Comments

tyler.frankenstein’s picture

Status: Active » Closed (fixed)

Thank you for pointing this out _vid, very much appreciated.

I've changed the database schema and implemented hook_update_N() to make this update available. Download 7.x-1.2 of this module for the update.

I opted for 'mediumtext' instead of the 4GB 'longtext', seems a bit excessive compared to 16MB ;)

But if there is a compelling reason to up it to 4GB let me know, thanks!