Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • SQL query truncated in reports

    Posted by japskar on febrero 2, 2011 at 05:04

    Hi,
    I just came across a problem with reporting using custom SQL queries.
    It happens to be that SQL queries are truncated to 255 chars, which is quite unfortunate when you’re trying to select, join and group data with a single query.

    Didn’t take long to find the problem though. It’s only a column in the treport_content table that’s set to tinytext.

    run this query from the DB interface to expand it to something a lot bigger:
      alter table treport_content modify external_source longtext ;

    Cheers,
    Jasper

    Sancho replied 14 years ago 2 Members · 1 Reply
  • 1 Reply
  • Sancho

    Administrator
    febrero 2, 2011 at 22:12
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks for the fix, we’ll add for next version !

    Hi,
    I just came across a problem with reporting using custom SQL queries.
    It happens to be that SQL queries are truncated to 255 chars, which is quite unfortunate when you’re trying to select, join and group data with a single query.

    Didn’t take long to find the problem though. It’s only a column in the treport_content table that’s set to tinytext.

    run this query from the DB interface to expand it to something a lot bigger:
       alter table treport_content modify external_source longtext ;

    Cheers,
    Jasper