#1 2014-06-18 03:49:33

chula
Member
Registered: 2014-06-18
Posts: 19

Hello Magic???

Hello,

Just downloaded mORMot and gave it a try, the "01 - In Memory ORM" example.

It worked properly except when the Name is "hello"

  TSQLSampleRecord = class(TSQLRecord)
  private
    fQuestion: RawUTF8;
    fName: RawUTF8;
    fTime: TModTime;
  published
    property Time: TModTime read fTime write fTime;
    property Name: RawUTF8 read fName write fName;
    property Question: RawUTF8 read fQuestion write fQuestion;
  end;

 Rec := TSQLSampleRecord.Create(Database,'Name=?',[StringToUTF8(NameEdit.Text)]);

i.e. As log as NameEdit.Text = 'Hello', the record could not be found. Why so strange?

Offline

#2 2014-06-18 07:16:10

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

Re: Hello Magic???

I just tried with 'hello' and it works on our side.

Are you sure you did download the latest 1.18 unstable version?
http://synopse.info/files/mORMotNightlyBuild.zip and http://synopse.info/files/sqlite3obj.7z
As stated by http://synopse.info/fossil/wiki?name=Get+the+source

Offline

#3 2014-06-19 07:14:31

chula
Member
Registered: 2014-06-18
Posts: 19

Re: Hello Magic???

Sorry, it's my fault.

I traced and found the JSON file, I was accidentally clicked "Add" when the message box was " Not Found". Even I add other "Hello"s, it returned only the first one.

Offline

#4 2014-06-19 07:22:36

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

Re: Hello Magic???

Sounds coherent.
big_smile

Offline

Board footer

Powered by FluxBB