i storing logs in text field in mysql right , able add text field rather writing entire thing in query because overflows exceed "max packet size"
there isn't in activerecord support concat. can write custom sql query uses concat, so:
activerecord::base.connection.execute(sql) or adjust mysql settings:
mysqld --max_allowed_packet=16m or best solution has been addressed already: database-independent sql string concatenation in rails
Comments
Post a Comment