query difference between servers?

LabKey Support Forum (Inactive)
query difference between servers? Ben Bimber  2013-04-09 12:34
Status: Closed
 
I have a custom SQL query that includes this field:

group_concat(distinct t.rooms, chr(10))

it's an aggregate that concatenates strings with a newline. when i display this query in a DataRegion, it renders right. on my local machine (sqlserver, tomcat6, running build from onprc12.3 branch), when I query it using the JS API, the value contains the newline character.

however, when I run this on our production server (sqlserver, tomcat6, linux box, identical build), there is no newline character in the response from the JS API. Rendering in a DataRegion looks fine. It appears that something involving the generation of the JSON, or delivering it to the browser, is eliminating that newline.

can anyone suggest any troubleshooting steps? thanks in advance.
 
 
jeckels responded:  2013-04-18 13:06
Update, in case anyone else sees this problem. There was a string literal in a dependent query that needed to be cast to a VARCHAR.

We are considering SQL generation changes to reduce or eliminate the cases that need explicit CAST expressions for string literals.

Thanks,
Josh