I have run into a problem where my dst URI is longer than 128 characters, so i'm gonna modify this module and change it to at least 255 characters.
The request is basically to increase the default lenght of a URI in the database.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | patch_commit_a0ab0db136a7.patch | 934 bytes | cyberschorsch |
| #6 | patch_commit_a0ab0db136a7.patch | 933 bytes | cyberschorsch |
Comments
Comment #1
Anonymous (not verified) commentedHow can I do this too? Amazon affiliate links are way too long for this form. I've changed all instances of 128 to 255 in the module, but for some reason, the form still shows up with a max length of 128, how can I change this?
Comment #2
hass commentedPlease provide a patch.
Comment #3
hass commentedShould be fixed code wise. Can you test, please?
Comment #5
aschiwi commentedWe stumbled upon the 255 limit and think it should be increased to 2048, which is link fields limit. Will post patch.
Comment #6
cyberschorschComment #7
cyberschorschComment #8
cyberschorschWrong return message, should be correct now.
Comment #9
aschiwi commentedworks for us - and I think it makes sense to use the same limit that link module uses, right?
Comment #10
steffenrJust tested the patch in a site i currently work on - it works fine for me too - i'll set the status to rtbc..
SteffenR
Comment #11
jibus commentedTested the patch ! Works for me ! (i use Postgre)
255 was too short for me ! Thanks !
Comment #12
ressaWe also had this problem, extending the max. length of 'dst' field to 2048 fixed it. Ready to be commited?
This is the error message, if somebody else searches for it:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'dst' at row 1: INSERT INTO {gotwo} (src, dst) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => ...Comment #14
hass commented