JDBC binder CONCAT
Confluence User - 08 Sep, 2016
Hello I got problem with jdbc binder and concatenating I got group of 3 columns, where always 2 of columns are NULL and 1 got a value, I need to get that value. Simplest solution working on mysql is this.
select CONCAT(IFNULL(c_col1,"")+IFNULL(c_col2,"")+IFNULL(c_col3,"")) as value, main.* from app_fd_main as main
When I run this query directly on mysql everything is fine, when I try to use it as JDBC binder for datalist, I am getting String reference with CONCAT, without CONCAT I am geting numeric value(those columns are strings so also wrong response).
By String reference I mean something like this
| [B@a408cdc |
| [B@4de4ddbe |
Thank you for help.
datalists;jdbc;query;mysql;concat