I was getting the message below when using Fast DBlog with the buffered option enabled.

Uncaught exception 'PDOException' with message 'SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'hostname' at row 1' in [drupal-root-directory]/includes/database/database.inc:2171

I figured out the issue is in the fast_dblog_shutdown() function because the value for Hostname was not being trimmed.

Comments

mmenavas’s picture

mmenavas’s picture

Issue summary: View changes
mmenavas’s picture

Issue summary: View changes
mmenavas’s picture

StatusFileSize
new471 bytes

My previous patch was loaded with strange characters, so I'm uploading a new one. This one should work.

markpavlitski’s picture

Assigned: mmenavas » Unassigned
Status: Active » Fixed

Thanks @mmenavas. Committed!

  • Commit c48d36f on 7.x-1.x authored by mmenavas, committed by markpavlitski:
    Issue #2268541 by mmenavas: PDOException, not using trimmed hostname.
    
markpavlitski’s picture

Assigned: mmenavas » Unassigned
Status: Active » Fixed
mmenavas’s picture

You're welcome!

Status: Fixed » Closed (fixed)

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