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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Correct_host_name_value-2268541-4.patch | 471 bytes | mmenavas |
Comments
Comment #1
mmenavas commentedPatch
Comment #2
mmenavas commentedComment #3
mmenavas commentedComment #4
mmenavas commentedMy previous patch was loaded with strange characters, so I'm uploading a new one. This one should work.
Comment #5
markpavlitski commentedThanks @mmenavas. Committed!
Comment #7
markpavlitski commentedComment #8
mmenavas commentedYou're welcome!