#1 2014-11-12 17:26:35

Chris75018
Member
From: France
Registered: 2012-09-14
Posts: 26
Website

PosEx result in PUREPASCAL

HI,

when i execute MVCServer sample with PUREPASCAL Directive On, i have this error :

Unit Mormot.pas
constructor TSQLRecordProperties.Create(aTable: TSQLRecordClass);
{...}
line 34813 :     
  if PosEx(' '+LowerCase(F.Name)+' ',SQLITE3_KEYWORDS)>0 then // Result = 226 with F.Name = 'Title'
      raise EORMException.CreateUTF8('%.% field name conflicts with a SQL keyword',

If PUREPASCAL is Off, the result of PosEx is 0.

Offline

#2 2014-11-12 18:11:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,203
Website

Re: PosEx result in PUREPASCAL

Could you please debug and find out what is wrong?
The PosEx() version used was not developped by us, but we re-used PosEx_AZ_Pas() by Avatar Zondertau from FastCode project.
I thought it was OK.

Offline

#3 2014-11-13 21:22:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,203
Website

Re: PosEx result in PUREPASCAL

There was indeed an issue.
The function implementation was just broken.

Should be fixed by the new implementation from http://synopse.info/fossil/info/9314dc7959

Thanks for the feedback!

Offline

#4 2014-11-15 11:02:06

Chris75018
Member
From: France
Registered: 2012-09-14
Posts: 26
Website

Re: PosEx result in PUREPASCAL

I will test it.
Thanks ab.

Offline

Board footer

Powered by FluxBB