Closed (fixed)
Project:
Double Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2011 at 12:33 UTC
Updated:
19 Mar 2012 at 09:57 UTC
Hi,
I wanted to find out if you will be open to support longtext in value field ( second field )? We have been getting column too short error. I can hash out a patch in couple of days but wanted to confirm with you if will be open to accept it. I think it will be more useful to model key => value use case for most of the people.
This is the error I got:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column
Comments
Comment #1
chi commentedWhat kind of data you are using in your site? Do you use double text field widget to submit this data?
By which way have you got this error?
Comment #2
dipen chaudhary commentedbasically my data is too long to fit in varchar - data I tried to fit in is -
Thats why wondered if you will accept a patch for long text as the second field ( value field? ).
Comment #3
phayes commentedJust want to chime in here: I think many people would like to use double field as a key => value store. *Optionally* making the second column a longtext would be awesome. Without, it chops off a whole bunch of functionality for double_field.
Thanks for the great module!
Comment #4
dipen chaudhary commentedTo answer your question, I fill in the data via code so It doesn't throw form validation errors if thats what you mean.
Comment #5
chi commentedOK, but I still suppose that double field should be symmetrical, so both subfields needs support longtext values.
Comment #6
phayes commentedHi Chi, so would you be open to such a patch? Dipen and I will get started on it and post it here when it's ready for review. Thanks!
Comment #7
chi commentedYup, assign this issue to yourself.
Comment #8
chi commentedAny progress?
Comment #9
preid commentedThis fix would make Double Field perfect for my project. I eagerly await the patch!
Comment #10
phayes commentedWe're still finding time to do it. It will come eventually!
Comment #11
chi commentedCommited to 2.x. Please, test it and confirm that it works as expected.