Joinutility seperatorLogin utility separator Infobright.com
   
 
Datatype DATE
Posted: 12 November 2009 05:11 AM   Ignore ]  
Newbie
Rank
Total Posts:  26
Joined  2009-07-23

Hello
I have problem with datatype DATE. Column DAY is DATE and query:

select count(*)
from cash_report
where day 
'2009-10-01' 

gave result: 2. I know, I have 2 records.

but query:

select *
from cash_report
where day 
'2009-10-01' 

gave error:
Truncated incorrect numeric value: 2009-10-01. Code: 1292
Brighthouse other specific error: BH result type not convertible to MySQL type. Code: 1105
Unknown error. Code: 1105

query:

select per_id
from cash_report
where day 
'2009-10-01' 

gave:
101010
202020

I think problem is DATE or data on this column, but I don’t know why…. and a few days ago everything was OK. I didn’t change configuration of Infobright, all queries on this table was excellent. Other tables with DATE column is OK.

I tried use DATE_FORMAT() or CAST() function on day column to check data, but I can’t see results.
What can I check, where to find? Maybe column DAY got incorrect data… but I can’t check it?

Thanks
Slawek

Profile
 
Posted: 12 November 2009 06:56 AM   Ignore ]   [ # 1 ]  
Member
Avatar
RankRankRank
Total Posts:  191
Joined  2008-08-18

Hello Slawek,

It seems like there is some problem with data loaded (maybe some special non-printable characters were added by mistake). How did you load the data: by loader or insert? Can you isolate and possibly send us data causing problem?

Thanks,
Piotr

Profile
 
Posted: 13 November 2009 05:21 AM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  26
Joined  2009-07-23

Thanks.
I don’t know why.
I refresh (truncate and re-insert) all data and I had the same problem…
Well, I created “copy” table, loaded data in that table, deleted old table, rename new table and all is OK.
I test IEE version and I use code with insert or update for load the data. Data comes from various external systems.

I think, maybe I had/have problem with filesystem, disks or some hardware problem?
Or Infobright/MySQL engine are broken?
I don’t know.

If I find the cause, I write it certainly.

Slawek

Profile
 
Posted: 13 November 2009 05:44 AM   Ignore ]   [ # 3 ]  
Super Duper Member
Avatar
RankRankRankRankRank
Total Posts:  916
Joined  2008-08-18

Hi !

Please upgrade to 3.2.2 - there are some bugs fixed there. They may be related to your problems. 3.2.2 is a recommended upgrade.

Profile