If we have very long names of the modules, e.g. more than 50 characters (features naming convention for example) I get a PDO exception.

PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1: INSERT INTO {l10n_update_project} (name, project_type, core, version, l10n_path, status) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); 
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skek created an issue. See original summary.

skek’s picture

Fixing the length of the name field to be compatible with the Drupal module names (same as the system table).

Sutharsan’s picture

Status: Needs review » Fixed

Thanks! Patch committed.

  • Sutharsan committed 5076440 on 7.x-2.x authored by skek
    Issue #2559367 by skek: Issue with modules long names
    
Sutharsan’s picture

Backported to 7.x-1.x too.

  • Sutharsan committed df88acf on 7.x-1.x
    Backport from 7.x-2.x of issue #2559367
    
skek’s picture

@Sutharsan,

Thanks for applying the patch.
I realised that we also need to change the project field of "l10n_update_file" table.

Regards!

  • Sutharsan committed 19843c3 on 7.x-1.x
    Backport from 7.x-2.x of issue #2559367
    

  • Sutharsan committed 826d152 on 7.x-2.x authored by skek
    Issue #2559367 by skek: Issue with modules long names
    
Sutharsan’s picture

Status: Needs review » Fixed

You're right, thanks again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.