Closed (fixed)
Project:
Cloud
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2012 at 12:29 UTC
Updated:
18 Dec 2012 at 18:16 UTC
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'instance_id' at row 1: INSERT INTO {cloud_aws_elastic_ip} (public_ip, cloud_type, public_ip_name, instance_id) VALUES.
Change the length of instance_id,public_ip from 16 to 64 or whatever you want.
you may face this issue in other tables, just change the length.
Comments
Comment #1
baldwinlouie commentedHi Ahmed,
can you roll a patch if you have this fixed. I'd like to get it checked back in.
Comment #2
ahmed_samir commentedI changed directly from mysql :), i'll try to write a patch.
Comment #3
baldwinlouie commentedno problem. I setup open stack to test, and have also come across these field issues. I'll it checked in a day or so.
Comment #4
baldwinlouie commentedAdded a hook_update() that takes care of lengthening a bunch of fields.
http://drupalcode.org/project/cloud.git/commit/d624dda
Comment #5
baldwinlouie commentedClosing