Closed (fixed)
Project:
Forena Reports
Version:
7.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2012 at 08:47 UTC
Updated:
11 May 2013 at 16:00 UTC
If I would like to use casting in a form of:
round(msp.plat::numeric,1)
Then getting errors. It's replacing or tries to replace ":numeric" with something else.
Comments
Comment #1
metzlerd commentedYep, I need to refactor the replacement REGX to fix this.
In the meantime you know you can get around this with the ANSII SQL syntax?:
round(CAST(msp.plat as numeric),1)
Comment #2
janeks commentedOf course :)
Comment #3
metzlerd commentedThis has been fixed in the dev snapshot and will be in the 7.x-3.2 and later releases. The regular expression replacement at the top of Frx.inc is as follows: