Update: Changing the query to the following fixed the issue:
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/243963fe-e183-48c6-b7a2-f6fc01dc6be4%40googlegroups.com.
Another difference to be aware of is that Lucee will always cast anything it can convert to a numeric to a numeric, even if the type of the property is varchar. Think dewey decimal number to get a sense of why this might not be an optimal behavior.
On Wed, Nov 9, 2016 at 7:10 PM, Armando Luna <cool...@gmail.com> wrote:
Update: Changing the query to the following fixed the issue:<cfquery name="SortedProducts" dbtype="query">SELECT sum(units) AS ttlunits, description, linetypeFROM MyQueryWHERE (linetype = 'V' OR linetype = 'M')GROUP BY description, linetype, unitsORDER BY linetype DESC, description</cfquery>The change that fixed it was 'SUM(units) AS ttlunits' instead of 'SUM(units) AS units', althought I still don't know why. Changing 'type' to 'linetype' didn't solve it, but I left it anyway.
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
Thanks for the tip, dos that mean I would have to explicitly cast '01' as VARCHAR to keep it from converting to a numeric?