Download & Extend

feeds_importer "config" column to short - change size to big

Project:Feeds
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:patch (to be ported)

Issue Summary

I have an import with quite a lot of fields mapped.

When i try to add an additional mapping field I get the error "Data truncated. Data too long for column..."

Solution is to set the config column size to big.
Attaching patch in first comment.

Comments

#1

Priority:normal» major
Status:active» needs review

Patch.

Also changing priority to major since this completely breaks functionality once reaching a certain config size.

AttachmentSizeStatusTest resultOperations
feeds-config-column-size-1715124-1.patch851 bytesIgnored: Check issue status.NoneNone

#2

Whoops, missing comma...

AttachmentSizeStatusTest resultOperations
feeds-config-column-size-1715124-1.patch852 bytesIgnored: Check issue status.NoneNone

#3

Status:needs review» needs work

hook_schema needs to be updated as well. Also, while we're at it, let's change from text to blob. Would it make more sense to split the configs into three separate columns? How many mappings do you have?

#4

Status:needs work» needs review

I don't think it's necessary to split into 3 columns.
MySQL longblob/longtext columns can hold 4GB of data.
That should suffice.

I'm attaching a patch that changes both config fields to blob.

It's probably not necessary to change the source config to big,
but let's make them consistent.

AttachmentSizeStatusTest resultOperations
feeds-config-columns-1715124-4.patch1.79 KBIgnored: Check issue status.NoneNone

#5

Are the changes ok for you twistor?

#6

As stated (and closed as duplicate) here: http://drupal.org/node/1736438 I'd like to see this changed too :-)

#7

Bumping...

#8

Status:needs review» patch (to be ported)

Comitted to 7.x
http://drupalcode.org/project/feeds.git/commit/ceb98dd

#9

How many mappings do you have?

#10

About 320.

#11

It seems db_change_field() didn't work for SQL server - #1828950: Update to alpha7 database update fails on MSSQL

nobody click here