Re: Expression evaluates differently in XPA-3 compared to uniPaaS

Avgerinos
 

Correcting the typo:

DVal (DStr ( '01/01/2016'D, 'DD/MM/YYYYY'), 'DD/MM/YYYYY' ) )


On 17/1/2017 10:29 μμ, Avgerinos wrote:

Hi magicians

Documenting some difference in behavior I noticed while migrating from uniPaaS to XPA3 (tested on 3.1.b so far).

Expression  DVal (DStr ( '01/01/20616'D, 'DD/MM/YYYYY'), 'DD/MM/YYYYY' ) )  is sent as a parameter to an DirectSQL command (MSSQL).
I use the SQL Profiler to see how this finally evaluates:

  • in uniPaaS it evaluates as number 735964.00000000 (the integer behind a MagicDate) and works fine.
  • in XPA is evaluates as number 160101 and brings wrong results
It's messing up all programs that use direct SQL, since they all base on date filtering.
Any known workaround or global setting, so that I avoid correcting programs with Direct SQL one by one?

Thanks in advance
Avgerinos


Join BugReports@magicu-l.groups.io to automatically receive all group messages.