Skip to main content



      Home
Home » Archived » BIRT » Strange behaviour with mysql and BIRT data types
Strange behaviour with mysql and BIRT data types [message #264138] Tue, 08 January 2008 09:37
Eclipse UserFriend
I am using BIRT 2.2.1 with mysql 5.0.37 and com.mysql.jdbc.Driver ( v3.0)
for the jdbc connection.

I am creating a dataset with the following query:

select SUM(ulDurationSec) from table1;

The ulDurationSec field is of type "unisgned int" in the mysql table.

Now my problem is that BIRT interpretes the result as being of type
"String" for some reasons and not Integer.

If I explicitly CAST the value:
select CAST(SUM(ulDurationSec) AS UNSIGNED) from table1;

Then BIRT takes the result as a "Decimal" and still not as Integer.

Does that make any sense at all?

Also if I do something like:
select COUNT(*) from table1;

The result is again "Decimal" not Integer.


Is this a normal behaviour? Am I doing something wrong? Could it a problem
with my jdbc connector?

Thanks in advance.
Previous Topic:BIRT in Pentaho
Next Topic:Library items on MasterPage and relative resource path setting
Goto Forum:
  


Current Time: Mon Nov 10 06:52:21 EST 2025

Powered by FUDForum. Page generated in 0.05154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top