Datalist SQL result bug

Confluence User - 05 Jul, 2017

The same SQL,but I get different results。There is extra value “.0”,how to solve it?

datalists

3


06 Jul, 2017
confluenceUser
confluenceUser

Hi,

You are getting a ".0" because of the floor return the result in Double data type which when toString() will add ".0" to it. You can use CAST(FLOOR(SUM(c_field)) as UNSIGNED) in your query to force it to return in Integer data type.

06 Jul, 2017
confluenceUser
confluenceUser

Thanks,the floor looks like return integer. There I found reasons,maybe datalist results will change all fields to String. CONCAT(FLOOR(sum(c_planPayInterest))) works!

06 Jul, 2017
confluenceUser
confluenceUser

And when Joget V6 Beta3 release?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print