sql - MySQL string data truncated in group_concat and order by -
i have sql works fine truncates serialized data on string fields long more 1024bytes. tried change mysql variable group_concat_max_len, nothing has changed. there other session variables involved in?
set session group_concat_max_len = 100000; select concat(area,';', colore,';', cast(percentuale char(20)),';', cast(trasparenza char(20)),';', date_format(data_misura,'%y%m%d'),';', ( select group_concat( concat( cast(x char(20)), ' ', cast(y char(20)) ) order progressivo_vertice separator ';') plan_poligoni id_imm = pp_gen.id_imm , scheda = pp_gen.scheda , progressivo = pp_gen.progressivo , if(data null,'',data) = if(pp_gen.data null,'',pp_gen.data)),'|') serialized_polygons plan_poligoni pp_gen scheda=1 , id_imm = 1111 , progressivo_vertice = 1 group id_imm, scheda, progressivo;
Comments
Post a Comment