Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Expression confused about alias

edited April 2009 in End User
Using Delphi 7, RB 11.04 Enterprise and SQL Server 2005. In our end user
application if a calculated field is created with an expression like this:

CAST(FLOOR(CAST(EVENT_DATE AS FLOAT)) AS DATETIME)

the SQL generated appears to be treating the AS DATETIME as an attempt to
put an alias into the expression field and so it removes it, which of course
leaves invalid SQL. Is there anyway around this?

Comments

  • edited April 2009

    There is now a patch available for RB 11.04 to fix this issue. I emailed you
    the patch. Registered users of RB 11.04 can email
    support@digital-metaphors.com to request the patch.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2009
    Thanks for that Nard, the patch has fixed the problem nicely.

    Paul

This discussion has been closed.