Pages: [1]   Go Down
Author Topic: SQL query truncated in reports  (Read 269 times)
0 Members and 2 Guests are viewing this topic.
japskar
Newbie
*

Karma: 0
Offline Offline

Posts: 3


View Profile
« on: February 02, 2011, 02:04:21 AM »

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
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: February 02, 2011, 07:12:00 PM »

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
Logged

-- See you in the other screen.

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST