#151 Re: mORMot 1 » Can one use mormot with legacy Firebird tables? » 2014-10-31 12:10:31

@ab

If you type the text look much like a number, eg. 123 in TITLE or CONTENT field,
after  Add Comment  error is generated.
(It's about 30 - MVC Server)


Error Page

Low-level #500 Error occurred with the following message:

HTTP Error 500 - Internal Server Error

The following Exception did occur:

EMVCException raised in TMVCRendererFromViews.ExecuteCommand: TMVCRendererFromViews.CommandRunMethod: IBlogApplication.ArticleComment() execution error

Error context:

{
  "main": {
    "pageName": "ArticleComment",
    "blog": {
      "Title": "mORMot BLOG",
      "Language": "en",
      "Description": "Sample Blog Web Application using Synopse mORMot MVC",
      "Copyright": "&copy;2014 <a href=http://synopse.info>Synopse Informatique</a>",
      "About": "Bla? Ble, bla ble, bli bla ble blu ble. Blo blu. Bla ble, blu bla blu blu bli blu blu bla, bli blo blo blo bli bli blu blo.\r\nBlo bla!"
    },
    "session": {
      "AuthorName": "synopse",
      "AuthorID": 1,
      "AuthorRights": {
        "canComment": true,
        "canPost": true,
        "canDelete": true,
        "canAdministrate": true
      },
      "id": 1
    },
...

Michal

#152 Re: mORMot 1 » Can one use mormot with legacy Firebird tables? » 2014-10-31 11:21:19

@ab

Yes, but it would be safer if they did not cause an error.
Why it happens?

Michal

#153 Re: mORMot 1 » Can one use mormot with legacy Firebird tables? » 2014-10-31 11:01:14

@ab

r 1.18.447, Zeos 7.2-beta r3438, Firebird 2.53

Indeed, there has been a change in the Firebird database:

SET SQL DIALECT 3;

SET NAMES UTF8;

CREATE DATABASE 'MVCSERVERFIREBIRD.FDB'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE 4096
DEFAULT CHARACTER SET UTF8 COLLATION UTF8;



/******************************************************************************/
/****                                Tables                                ****/
/******************************************************************************/



CREATE TABLE ARTICLE (
    ID              INTEGER NOT NULL,
    CREATEDAT       BIGINT,
    MODIFIEDAT      BIGINT,
    TITLE           VARCHAR(80),
    CONTENT         BLOB SUB_TYPE 1 SEGMENT SIZE 2000,
    AUTHOR          INTEGER,
    AUTHORNAME      VARCHAR(50),
    PUBLISHEDMONTH  BIGINT,
    ABSTRACT        VARCHAR(1024),
    TAGS            BLOB SUB_TYPE 0 SEGMENT SIZE 2000
);

CREATE TABLE ARTICLESEARCH (
    ID    INTEGER NOT NULL,
    TEXT  BLOB SUB_TYPE 1 SEGMENT SIZE 2000
);

CREATE TABLE AUTHOR (
    ID              INTEGER NOT NULL,
    CREATEDAT       BIGINT,
    MODIFIEDAT      BIGINT,
    LOGONNAME       VARCHAR(30) NOT NULL,
    FIRSTNAME       VARCHAR(50),
    FAMILYNAME      VARCHAR(50),
    BIRTHDATE       TIMESTAMP,
    EMAIL           VARCHAR(40),
    HASHEDPASSWORD  VARCHAR(64),
    VERIFIED        INTEGER,
    RIGHTS          BIGINT
);

CREATE TABLE BLOGINFO (
    ID           INTEGER NOT NULL,
    TITLE        VARCHAR(80),
    LANGUAGE     VARCHAR(3),
    DESCRIPTION  VARCHAR(120),
    COPYRIGHT    VARCHAR(80),
    ABOUT        BLOB SUB_TYPE 1 SEGMENT SIZE 2000
);

CREATE TABLE COMMENT (
    ID          INTEGER NOT NULL,
    CREATEDAT   BIGINT,
    MODIFIEDAT  BIGINT,
    TITLE       VARCHAR(80),
    CONTENT     BLOB SUB_TYPE 1 SEGMENT SIZE 2000,
    AUTHOR      INTEGER,
    AUTHORNAME  VARCHAR(50),
    ARTICLE     INTEGER
);

CREATE TABLE TAG (
    ID         INTEGER NOT NULL,
    IDENT      VARCHAR(80),
    OCCURENCE  BIGINT,
    CREATEDAT  BIGINT
);



/******************************************************************************/
/****                          Unique Constraints                          ****/
/******************************************************************************/

ALTER TABLE AUTHOR ADD UNIQUE (LOGONNAME);


/******************************************************************************/
/****                             Primary Keys                             ****/
/******************************************************************************/

ALTER TABLE ARTICLE ADD PRIMARY KEY (ID);
ALTER TABLE ARTICLESEARCH ADD PRIMARY KEY (ID);
ALTER TABLE AUTHOR ADD PRIMARY KEY (ID);
ALTER TABLE BLOGINFO ADD PRIMARY KEY (ID);
ALTER TABLE COMMENT ADD PRIMARY KEY (ID);
ALTER TABLE TAG ADD PRIMARY KEY (ID);


/******************************************************************************/
/****                               Indices                                ****/
/******************************************************************************/

CREATE INDEX NDXARTICLEAUTHOR ON ARTICLE (AUTHOR);
CREATE UNIQUE DESCENDING INDEX NDXARTICLEID ON ARTICLE (ID);
CREATE INDEX NDXARTICLEPUBLISHEDMONTH ON ARTICLE (PUBLISHEDMONTH);
CREATE UNIQUE DESCENDING INDEX NDXARTICLESEARCHID ON ARTICLESEARCH (ID);
CREATE UNIQUE DESCENDING INDEX NDXAUTHORID ON AUTHOR (ID);
CREATE UNIQUE DESCENDING INDEX NDXBLOGINFOID ON BLOGINFO (ID);
CREATE INDEX NDXCOMMENTARTICLE ON COMMENT (ARTICLE);
CREATE INDEX NDXCOMMENTAUTHOR ON COMMENT (AUTHOR);
CREATE UNIQUE DESCENDING INDEX NDXCOMMENTID ON COMMENT (ID);
CREATE UNIQUE DESCENDING INDEX NDXTAGID ON TAG (ID);

I noticed that TITLE and CONTENT in COMMENT can not be a number, because throwing an error.

Michal

#154 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-30 21:24:45

@ab

I know that.
But improving ZEOS useful even for other applications.
Besides, sometimes you have to use other than a local SQLite data. smile

Michal

#155 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-30 19:57:05

@ab

So I was just thinking myself. big_smile
For now, we exercise improving performance and reducing memory usage for ZEOS.

Michal

#156 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-30 17:26:04

@ab

Thanks, now it's fine.
When adding Articles and Users using html wink

Michal

#157 Re: mORMot 1 » Can one use mormot with legacy Firebird tables? » 2014-10-30 15:54:01

For me "30 - MVC Server" and ZEOS 7.2 such database in Firebird 2.53 has created:

SET SQL DIALECT 3;

SET NAMES UTF8;

CREATE DATABASE 'MVCSERVERFIREBIRD.FDB'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE 4096
DEFAULT CHARACTER SET UTF8 COLLATION UTF8;



/******************************************************************************/
/****                                Tables                                ****/
/******************************************************************************/



CREATE TABLE ARTICLE (
    ID              INTEGER NOT NULL,
    CREATEDAT       BIGINT,
    MODIFIEDAT      BIGINT,
    TITLE           VARCHAR(80),
    CONTENT         BLOB SUB_TYPE 1 SEGMENT SIZE 2000,
    AUTHOR          BIGINT,
    AUTHORNAME      VARCHAR(50),
    PUBLISHEDMONTH  BIGINT,
    ABSTRACT        VARCHAR(1024),
    TAGS            BLOB SUB_TYPE 0 SEGMENT SIZE 2000
);

CREATE TABLE ARTICLESEARCH (
    ID    INTEGER NOT NULL,
    TEXT  BLOB SUB_TYPE 1 SEGMENT SIZE 2000
);

CREATE TABLE AUTHOR (
    ID              INTEGER NOT NULL,
    CREATEDAT       BIGINT,
    MODIFIEDAT      BIGINT,
    LOGONNAME       VARCHAR(30) NOT NULL,
    FIRSTNAME       VARCHAR(50),
    FAMILYNAME      VARCHAR(50),
    BIRTHDATE       TIMESTAMP,
    EMAIL           VARCHAR(40),
    HASHEDPASSWORD  VARCHAR(64),
    VERIFIED        BIGINT,
    RIGHTS          BIGINT
);

CREATE TABLE BLOGINFO (
    ID           INTEGER NOT NULL,
    TITLE        VARCHAR(80),
    LANGUAGE     VARCHAR(3),
    DESCRIPTION  VARCHAR(120),
    COPYRIGHT    VARCHAR(80),
    ABOUT        BLOB SUB_TYPE 1 SEGMENT SIZE 2000
);

CREATE TABLE COMMENT (
    ID          INTEGER NOT NULL,
    CREATEDAT   BIGINT,
    MODIFIEDAT  BIGINT,
    TITLE       VARCHAR(80),
    CONTENT     BLOB SUB_TYPE 1 SEGMENT SIZE 2000,
    AUTHOR      BIGINT,
    AUTHORNAME  VARCHAR(50),
    ARTICLE     BIGINT
);

CREATE TABLE TAG (
    ID         INTEGER NOT NULL,
    IDENT      BLOB SUB_TYPE 1 SEGMENT SIZE 2000,
    OCCURENCE  BIGINT,
    CREATEDAT  BIGINT
);



/******************************************************************************/
/****                          Unique Constraints                          ****/
/******************************************************************************/

ALTER TABLE AUTHOR ADD UNIQUE (LOGONNAME);


/******************************************************************************/
/****                             Primary Keys                             ****/
/******************************************************************************/

ALTER TABLE ARTICLE ADD PRIMARY KEY (ID);
ALTER TABLE ARTICLESEARCH ADD PRIMARY KEY (ID);
ALTER TABLE AUTHOR ADD PRIMARY KEY (ID);
ALTER TABLE BLOGINFO ADD PRIMARY KEY (ID);
ALTER TABLE COMMENT ADD PRIMARY KEY (ID);
ALTER TABLE TAG ADD PRIMARY KEY (ID);


/******************************************************************************/
/****                               Indices                                ****/
/******************************************************************************/

CREATE INDEX NDXARTICLEAUTHOR ON ARTICLE (AUTHOR);
CREATE UNIQUE DESCENDING INDEX NDXARTICLEID ON ARTICLE (ID);
CREATE INDEX NDXARTICLEPUBLISHEDMONTH ON ARTICLE (PUBLISHEDMONTH);
CREATE UNIQUE DESCENDING INDEX NDXARTICLESEARCHID ON ARTICLESEARCH (ID);
CREATE UNIQUE DESCENDING INDEX NDXAUTHORID ON AUTHOR (ID);
CREATE UNIQUE DESCENDING INDEX NDXBLOGINFOID ON BLOGINFO (ID);
CREATE INDEX NDXCOMMENTARTICLE ON COMMENT (ARTICLE);
CREATE INDEX NDXCOMMENTAUTHOR ON COMMENT (AUTHOR);
CREATE UNIQUE DESCENDING INDEX NDXCOMMENTID ON COMMENT (ID);
CREATE UNIQUE DESCENDING INDEX NDXTAGID ON TAG (ID);

Michal

#158 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-30 15:40:06

@ab,

R 1.18.438
Stlil Error after Add Comment:
Low-level #404 Error occurred with the following message:

HTTP Error 404 - Not Found

Error context:

{
  "Msg": "HTTP Error 404 - Not Found",
  "Scope": null,
  "main": {
    "pageName": "Error",
    "blog": {
      "Title": "mORMot BLOG",
      "Language": "en",
      "Description": "Sample Blog Web Application using Synopse mORMot MVC",
      "Copyright": "&copy;2014 <a href=http://synopse.info>Synopse Informatique</a>",
      "About": "Bla? Ble, bla ble, bli bla ble blu ble. Blo blu. Bla ble, blu bla blu blu bli blu blu bla, bli blo blo blo bli bli blu blo.\r\nBlo bla!"
    },
    "session": {
      "AuthorName": "synopse",
      "AuthorID": 1,
      "AuthorRights": {
        "canComment": true,
        "canPost": true,
        "canDelete": true,
        "canAdministrate": true
      },
      "id": 1
...

Michal

#159 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-29 09:05:24

@ab

r 1.18.433 (SQLite)
Still this error occurs.
After Add Comment, data to write but throws an error as above.

Michal

#160 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-28 16:49:37

@ab

Now, unfortunately, there was an error when (after) Add Comment by synopse:


Error Page

Low-level #404 Error occurred with the following message:

HTTP Error 404 - Not Found

Error context:

{
  "Msg": "HTTP Error 404 - Not Found",
  "Scope": null,
  "main": {
    "pageName": "Error",
    "blog": {
      "Title": "mORMot BLOG",
      "Language": "en",
      "Description": "Sample Blog Web Application using Synopse mORMot MVC",
      "Copyright": "&copy;2014 <a href=http://synopse.info>Synopse Informatique</a>",
      "About": "Bla? Ble, bla ble, bli bla ble blu ble. Blo blu. Bla ble, blu bla blu blu bli blu blu bla, bli blo blo blo bli bli blu blo.\r\nBlo bla!"
    },
    "session": {
      "AuthorName": "synopse",
      "AuthorID": 1,
      "AuthorRights": {
        "canComment": true,
        "canPost": true,
        "canDelete": true,
        "canAdministrate": true
      },
      "id": 2
    },
    "archives":
    [
      {
        "PublishedMonth": 25168,
        "FirstID": 10001
...


Michal

#161 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-28 15:58:15

@ab, @EgonHugeist

Thanks for the example of the Firebird. It works and consumes much less memory than PostgreSQL
but now:
mORmot r1.18.428 and ZEOS 7.2 r3436
PostgreSQL also consumes much less memory than previously.

Michal

#162 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-28 10:13:06

@ab,

A bigger problem is the Firebird by ZEOS.
Not only did to login but does not display Articles.
The database is created, tags are counted.
(I replaced all the LIMIT on ROWS.)
Could you even try the Firebird, please.

Michal

#163 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-28 09:57:01

@ab

Indeed.
But SQLite allowed to log in Synopse / synopse - why?

Michal

#164 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-27 22:08:40

@ab

In the version of PostgreSQL(R 1.18.416; ZEOS 7.2.0-beta R 3434(and R 3435)) can not login(Synopse/synopse).
I get an error:


Error Page

Low-level #400 Error occurred with the following message:

Wrong logging information

Error context:

{
  "Msg": "Wrong logging information",
  "Scope": null,
  "main": {
    "pageName": "Error",
    "blog": {
      "Title": "mORMot BLOG",
      "Language": "en",
      "Description": "Sample Blog Web Application using Synopse mORMot MVC",
      "Copyright": "&copy;2014 <a href=http://synopse.info>Synopse Informatique</a>",
      "About": "Bla? Ble, bla ble, bli bla ble blu ble. Blo blu. Bla ble, blu bla blu blu bli blu blu bla, bli blo blo blo bli bli blu blo.\r\nBlo bla!"
    },
    "session": null,
    "archives":
    [
      {
        "PublishedMonth": 24368,
        "FirstID": 2001
      },
      {
        "PublishedMonth": 24367,
...

Michal

#166 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-27 17:08:50

@ab

I recall my request.
Can you show how to effectively use external database by ZEOS in this example?

Michal

#167 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-27 09:06:14

@ab

There is something wrong with the dates(years) in the Archives list.
R 1.18.410

Michal

#169 Re: mORMot 1 » MVC/MVVM Web Applications with mORMot! » 2014-10-25 19:38:07

@ab,

R 1.18.407
What happened to the Category table in MVCServer.db?

Michal

Add:
It is okay.
It SynDBExplorer remembered the old structure.
(What is not OK).

Michal

#170 mORMot 1 » SynProject and Delphi XE2 » 2014-10-25 12:12:50

miab3
Replies: 0

Hi Arnaud,
Why SynProject does not compile on Unicode Delphi (on the D2007 does not have a problem)?.
Errors begin from:

function PCharToHex32(p: PAnsiChar; d: ppChar): cardinal;
var v0,v1: cardinal;
begin
  result := 0;
  if p<>nil then begin
    while p^=' ' do inc(p);
    repeat
      v0 := Hex2Dec[p[0]];
      if v0=255 then break; // not in '0'..'9','a'..'f'
      v1 := Hex2Dec[p[1]];
      inc(p);
      if v1=255 then begin
        result := (result shl 4)+v0; // only one char left
        break;
      end;
      v0 := v0 shl 4;
      result := result shl 8;
      inc(v0,v1);
      inc(p);
      inc(result,v0);
    until false;
  end;
  if d<>nil then
    d^ := p;   // <<=============================
end;

Michal

#171 Re: mORMot 1 » Zoes7.2 upgrade » 2014-10-21 22:03:32

@Arnaud

Could you add to the "30 - MVC Server" connection for ZEOS?.

Michal

#172 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-19 21:27:28

@ab

The same on Windows 10-64 (with cp1252), for both DXE2-32 and D2007.

On D2007:

SynCommons.TSynLog.DebuggerNotify(???,???)
SynCommons.TSynTestCase.TestFailed('')
SynSelfTests.TTestSynopsePDF._TPdfDocument
SynCommons.TSynTests.Run
mORMotSelfTests.SQLite3ConsoleTests
TestSQL3.TestSQL3
:7571919f KERNEL32.BaseThreadInitThunk + 0xe
:771d0bbb ntdll.RtlInitializeExceptionChain + 0x84
:771d0b91 ntdll.RtlInitializeExceptionChain + 0x5a

SynSelfTest.pas line 6900:
       //MS.SaveToFile(ChangeFileExt(paramstr(0),'.pdf'));
      Check(Hash32(MS.Memory,MS.Position)=Hash[embed]);
      if not embed then begin      // <===
        if CharSet<>ANSI_CHARSET then

Michal

#173 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-19 11:43:54

@ab

Mistake occurs on Windows.8.1-64(in both versions).
On Windows 7-64 both versions pass without error.

Michal

#174 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-19 11:25:31

@ab

R_1.16.355

DXE2-32(w7-64)

Synopse framework used: 1.18.355
Running on wSeven_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi XE2 compiler

Time elapsed for all tests: 36.71s
Tests performed at 2014-10-19 13:19:51

Total assertions failed for all test suits:  0 / 17,540,355
! All tests passed successfully.

================================

D2007(W8.1-64)

1.4. Synopse PDF:
!  - TPdfDocument: 1 / 2 FAILED  10.67ms

Synopse framework used: 1.18.355
Running on wEight_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi 2007 compiler

Time elapsed for all tests: 70.51s
Tests performed at 2014-10-19 13:12:26

Total assertions failed for all test suits:  1 / 17,156,035
! Some tests FAILED: please correct the code.

Michal

#175 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-18 09:05:54

@ab

Now, after 1.16.354

DXE2-32(w7-64)

Synopse framework used: 1.18.354
Running on wSeven_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi XE2 compiler

Time elapsed for all tests: 36.42s
Tests performed at 2014-10-18 10:52:05

Total assertions failed for all test suits:  0 / 17,542,191
! All tests passed successfully.
(Add: on  W8.1-64 ->  !  - TPdfDocument: 1 / 2 FAILED  5.51ms)

D2007(W8.1-64)

1.1. Low level common:
!  - TSynTable: 188 / 875 FAILED  11.99ms

1.4. Synopse PDF:
!  - TPdfDocument: 1 / 2 FAILED  7.80ms

cp1250

Michal

#176 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-17 20:49:58

@ab

Now, after 1.16.351

DXE2-32(w7-64)

2.5. Basic classes:
!  - TSQLRecord: 1 / 80 FAILED  1.27ms

D2007(W8.1-64)

1.1. Low level common:
!  - TSynTable: 187 / 875 FAILED  13.55ms

1.4. Synopse PDF:
!  - TPdfDocument: 1 / 2 FAILED  7.80ms

2.5. Basic classes:
!  - TSQLRecord: 1 / 80 FAILED  1.68ms

cp1250

Michal

#177 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-16 16:36:37

@ab,

ab wrote:

What is your system code page?

1250, but why just only in those places is the problem?

Michal

#178 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-16 15:45:42

@ab,

After 1.16.346

DXE2-32(w7-64) 1 error:

1.1
!  - TSynTable: 101 / 875 FAILED  6.25ms


D2007(W8.1-64) 2 errors:

1.1
!  - TSynTable: 187 / 875 FAILED  12.75ms

1.4
!  - TPdfDocument: 1 / 2 FAILED  7.97ms


Michal

#179 Re: mORMot 1 » Socket bind creation error (W8.1-64) » 2014-10-01 18:51:48

@ab,

Indeed. It turns out that this port bound Oracle Executable TNSLSNR.
Thanks.

Michal

#180 mORMot 1 » Socket bind creation error (W8.1-64) » 2014-10-01 17:15:11

miab3
Replies: 2

@ab,

Why, for Windows 8.1-64 after starting Project04Server I get error:
"Socket bind creation error on 0.0.0.0:8080 (0)"
?

On Windows 7-32 and 7-64 this error does not appear.

Michal

#182 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-01 14:54:56

@ab,

How to force a test for the code page 1252?

Michal

#183 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-01 14:39:04

@ab,

...
Running on wSeven_64 with code page 1250
...
Running on wEight_64 with code page 1250
...

Michal

#184 Re: mORMot 1 » TestSQL3 on XE3 » 2014-10-01 14:18:11

@ab,

DXE2-32(w7-64)

   Synopse mORMot Framework Automated tests
  ------------------------------------------

1. Synopse libraries

 1.1. Low level common:
  - System copy record: 22 assertions passed  89us
  - TRawUTF8List: 70,005 assertions passed  34.70ms
  - TDynArray: 1,027,703 assertions passed  117.32ms
  - TDynArrayHashed: 1,200,629 assertions passed  78.43ms
  - TObjectListHashed: 999,874 assertions passed  286.99ms
  - TObjectDynArrayWrapper: 167,501 assertions passed  14.11ms
  - Fast string compare: 7 assertions passed  126us
  - IdemPropName: 30 assertions passed  91us
  - Url encoding: 130 assertions passed  920us
  - GUID: 9,007 assertions passed  3.26ms
  - IsMatch: 599 assertions passed  161us
  - Soundex: 35 assertions passed  114us
  - Numerical conversions: 1,116,461 assertions passed  220.57ms
  - crc32c: 30,030 assertions passed  65.20ms
      pas 23.75ms 251.1 MB/s fast 2.81ms 2.0 GB/s sse42 1.22ms 778.5 MB/s
  - Curr 64: 20,053 assertions passed  896us
  - CamelCase: 11 assertions passed  102us
  - Bits: 4,774 assertions passed  139us
  - Ini files: 7,004 assertions passed  17.77ms
  - UTF8: 81,128 assertions passed  936.68ms
  - Iso 8601 date and time: 36,015 assertions passed  4.52ms
  - Url decoding: 1,100 assertions passed  268us
  - Mime types: 23 assertions passed  123us
!  - TSynTable: 197 / 875 FAILED  4.88ms
  - TSynCache: 404 assertions passed  206us
  - TSynFilter: 1,005 assertions passed  2.20ms
  - TSynValidate: 677 assertions passed  564us
  - TSynLogFile: 42 assertions passed  304us
  Total failed: 197 / 4,775,144  - Low level common FAILED  1.79s
      
...

Synopse framework used: 1.18.305
Running on wSeven_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi XE2 compiler

Time elapsed for all tests: 43.57s
Tests performed at 2014-10-01 15:49:25

Total assertions failed for all test suits:  197 / 17,382,332
! Some tests FAILED: please correct the code.

Done - Press ENTER to Exit

DXE7-32(W7-64)

   Synopse mORMot Framework Automated tests
  ------------------------------------------


1. Synopse libraries

 1.1. Low level common:
  - System copy record: 22 assertions passed  148us
  - TRawUTF8List: 70,005 assertions passed  41.05ms
  - TDynArray: 1,027,703 assertions passed  122.85ms
  - TDynArrayHashed: 1,200,629 assertions passed  79.82ms
  - TObjectListHashed: 999,897 assertions passed  282.26ms
  - TObjectDynArrayWrapper: 167,501 assertions passed  14.30ms
  - Fast string compare: 7 assertions passed  221us
  - IdemPropName: 30 assertions passed  114us
  - Url encoding: 130 assertions passed  935us
  - GUID: 9,007 assertions passed  3.62ms
  - IsMatch: 599 assertions passed  231us
  - Soundex: 35 assertions passed  79us
  - Numerical conversions: 1,117,024 assertions passed  220.94ms
  - crc32c: 30,030 assertions passed  64.47ms
      pas 23.57ms 253.0 MB/s fast 2.91ms 2.0 GB/s sse42 1.26ms 624.3 MB/s
  - Curr 64: 20,053 assertions passed  952us
  - CamelCase: 11 assertions passed  297us
  - Bits: 4,774 assertions passed  467us
  - Ini files: 7,004 assertions passed  19.49ms
  - UTF8: 81,128 assertions passed  931.80ms
  - Iso 8601 date and time: 36,015 assertions passed  3.79ms
  - Url decoding: 1,100 assertions passed  560us
  - Mime types: 23 assertions passed  499us
!  - TSynTable: 193 / 875 FAILED  5.73ms
  - TSynCache: 404 assertions passed  586us
  - TSynFilter: 1,005 assertions passed  2.21ms
  - TSynValidate: 677 assertions passed  579us
  - TSynLogFile: 42 assertions passed  449us
  Total failed: 193 / 4,775,730  - Low level common FAILED  1.80s

...

Synopse framework used: 1.18.305
Running on wSeven_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi XE7 compiler

Time elapsed for all tests: 66.57s
Tests performed at 2014-10-01 15:55:50

Total assertions failed for all test suits:  193 / 17,410,844
! Some tests FAILED: please correct the code.

Done - Press ENTER to Exit

D2007(W8.1-64)

   Synopse mORMot Framework Automated tests
  ------------------------------------------


1. Synopse libraries

 1.1. Low level common:
  - System copy record: 22 assertions passed  561us
  - TRawUTF8List: 70,005 assertions passed  159.33ms
  - TDynArray: 1,027,702 assertions passed  199.20ms
  - TDynArrayHashed: 1,200,629 assertions passed  156.89ms
  - TObjectListHashed: 999,874 assertions passed  506.64ms
  - TObjectDynArrayWrapper: 167,501 assertions passed  33.63ms
  - Fast string compare: 7 assertions passed  231us
  - IdemPropName: 30 assertions passed  494us
  - Url encoding: 130 assertions passed  1.15ms
  - GUID: 9,005 assertions passed  1.85ms
  - IsMatch: 599 assertions passed  472us
  - Soundex: 35 assertions passed  356us
  - Numerical conversions: 1,115,554 assertions passed  410.27ms
  - crc32c: 20,020 assertions passed  74.53ms
      pas 25.41ms 234.7 MB/s fast 4.37ms 1.3 GB/s
  - Curr 64: 20,053 assertions passed  1.73ms
  - CamelCase: 11 assertions passed  208us
  - Bits: 4,774 assertions passed  743us
  - Ini files: 7,004 assertions passed  37.01ms
  - UTF8: 81,128 assertions passed  955.47ms
  - Iso 8601 date and time: 36,015 assertions passed  6.24ms
  - Url decoding: 1,100 assertions passed  510us
  - Mime types: 23 assertions passed  265us
!  - TSynTable: 193 / 875 FAILED  11.72ms
  - TSynCache: 404 assertions passed  363us
  - TSynFilter: 1,005 assertions passed  2.86ms
  - TSynValidate: 677 assertions passed  1.81ms
  - TSynLogFile: 42 assertions passed  6.09ms
  Total failed: 193 / 4,764,224  - Low level common FAILED  2.58s

 1.2. Low level types:
  - RTTI: 58 assertions passed  581us
  - Url encoding: 200 assertions passed  990us
  - Encode decode JSON: 262,094 assertions passed  155.85ms
  - Variants: 5 assertions passed  372us
  - Mustache renderer: 142 assertions passed  3.59ms
  - TDocVariant: 71,670 assertions passed  189.61ms
  - BSON: 245,048 assertions passed  3.71ms
  Total failed: 0 / 579,217  - Low level types PASSED  361.34ms

 1.3. Big table:
  - TSynBigTable: 19,220 assertions passed  117.68ms
  - TSynBigTableString: 16,053 assertions passed  24.74ms
  - TSynBigTableMetaData: 384,062 assertions passed  1.20s
  - TSynBigTableRecord: 304,062 assertions passed  1.79s
  Total failed: 0 / 723,397  - Big table PASSED  3.14s

 1.4. Synopse PDF:
!  - TPdfDocument: 1 / 2 FAILED  8.27ms
  - TPdfDocumentGDI: 5 assertions passed  734.50ms
  Total failed: 1 / 7  - Synopse PDF FAILED  744.82ms

 1.5. Cryptographic routines:
  - Adler32: 1 assertion passed  789us
  - MD5: 1 assertion passed  281us
  - SHA1: 5 assertions passed  399us
  - SHA256: 5 assertions passed  385us
  - AES256: 16,815 assertions passed  1.01s
  - RC4: 1 assertion passed  235us
  - Base64: 11,994 assertions passed  112.27ms
  - CompressShaAes: 1,683 assertions passed  4.59ms
  Total failed: 0 / 30,505  - Cryptographic routines PASSED  1.13s

 1.6. Compression:
  - In memory compression: 12 assertions passed  308.54ms
  - GZIP format: 19 assertions passed  584.01ms
  - ZIP format: 36 assertions passed  1.02s
  - SynLZO: 3,006 assertions passed  101.78ms
  - SynLZ: 30,019 assertions passed  768.13ms
  Total failed: 0 / 33,092  - Compression PASSED  2.79s


2. mORMot

 2.1. File based:
!  - Database direct access: 2 / 10,138 FAILED  351.48ms
  - Virtual table direct access: 12 assertions passed  2.52ms
  - TSQLTableJSON: 106,068 assertions passed  118.78ms
  - TSQLRestClientDB: 608,165 assertions passed  4.47s
  Total failed: 2 / 724,383  - File based FAILED  4.95s

 2.2. File based memory map:
!  - Database direct access: 1 / 10,136 FAILED  337.58ms
  - Virtual table direct access: 12 assertions passed  3.22ms
  - TSQLTableJSON: 106,068 assertions passed  119.20ms
  - TSQLRestClientDB: 608,164 assertions passed  4.84s
  Total failed: 1 / 724,380  - File based memory map FAILED  5.31s

 2.3. File based WAL:
!  - Database direct access: 2 / 10,138 FAILED  359.53ms
  - Virtual table direct access: 12 assertions passed  1.97ms
  - TSQLTableJSON: 106,068 assertions passed  116.03ms
  - TSQLRestClientDB: 608,165 assertions passed  4.81s
  Total failed: 2 / 724,383  - File based WAL FAILED  5.29s

 2.4. Memory based:
!  - Database direct access: 1 / 10,136 FAILED  327.44ms
  - Virtual table direct access: 12 assertions passed  1.85ms
  - TSQLTableJSON: 106,068 assertions passed  110.49ms
!  - TSQLRestClientDB: 2 / 676,461 FAILED  5.51s
  - RTree: 140,000 assertions passed  1.45s
  Total failed: 3 / 932,677  - Memory based FAILED  7.41s

 2.5. Basic classes:
  - TSQLRecord: 79 assertions passed  1.40ms
  - TSQLRecordSigned: 200 assertions passed  6.07ms
  - TSQLModel: 3 assertions passed  195us
  - TSQLRestServerFullMemory: 562,311 assertions passed  837.07ms
  Total failed: 0 / 562,593  - Basic classes PASSED  850.35ms

 2.6. Client server access:
  - TSQLHttpServer: 2 assertions passed  6.03ms
     using HTTP API 2.0
!  - TSQLHttpClient: 1 / 3 FAILED  41.96ms
  - HTTP client keep alive: 3,087 assertions passed  346.84ms
     4818 B, first 8.32ms, done 319.59ms i.e. 3128/s, aver. 319us, 14.6 MB/s
  - HTTP client multi connect: 3,087 assertions passed  343.35ms
     4818 B, first 762us, done 323.31ms i.e. 3092/s, aver. 323us, 14.4 MB/s
  - HTTP client encrypted: 3,087 assertions passed  403.44ms
     4818 B, first 955us, done 381.79ms i.e. 2619/s, aver. 381us, 12.2 MB/s
  - Named pipe access: 3,089 assertions passed  697.58ms
     4818 B, first 258.27ms, done 223.96ms i.e. 4465/s, aver. 223us, 20.8 MB/s
  - Local window messages: 3,088 assertions passed  57.82ms
     4818 B, first 138us, done 48.74ms i.e. 20515/s, aver. 48us, 95.9 MB/s
  - Direct in process access: 3,056 assertions passed  53.32ms
     4818 B, first 55us, done 38.24ms i.e. 26147/s, aver. 38us, 122.2 MB/s
  - HTTP several DB servers: 9,604 assertions passed  1.04s
     4818 B, first 635us, done 296.48ms i.e. 3372/s, aver. 296us, 15.7 MB/s
     4818 B, first 611us, done 296.86ms i.e. 3368/s, aver. 296us, 15.7 MB/s
     4818 B, first 623us, done 292.75ms i.e. 3415/s, aver. 292us, 15.9 MB/s
  Total failed: 1 / 28,103  - Client server access FAILED  3.03s

 2.7. Service oriented architecture:
  - Weak interfaces: 56 assertions passed  2.22ms
  - Service initialization: 243 assertions passed  4.52ms
  - Direct call: 572,877 assertions passed  39.48ms
  - Server side: 572,896 assertions passed  40.35ms
  - Client side REST: 572,901 assertions passed  758.12ms
  - Client side REST result as object: 572,895 assertions passed  777.10ms
  - Client side REST locked: 572,898 assertions passed  766.93ms
  - Client side REST synchronized: 572,898 assertions passed  3.10s
  - Client side REST background thread: 572,898 assertions passed  2.47s
  - Client side REST weak authentication: 572,895 assertions passed  723.18ms
  - Client side http basic authentication: 572,895 assertions passed  877.54ms
  - Client side REST custom record layout: 572,895 assertions passed  795.38ms
  - Client side JSONRPC: 572,895 assertions passed  841.45ms
  - Test over HTTP: 9,322 assertions passed  569.40ms
  - Security: 135 assertions passed  2.45ms
  - Mocks and stubs: 30,031 assertions passed  68.99ms
  Total failed: 0 / 6,341,630  - Service oriented architecture PASSED  11.86s

 2.8. External database:
  - TQuery: 2,003 assertions passed  15.28ms
  - External records: 2 assertions passed  389us
  - Auto adapt SQL: 624 assertions passed  51.96ms
  - Crypted database: 253,275 assertions passed  275.41ms
  - External via REST: 168,346 assertions passed  1.99s
  - External via virtual table: 168,346 assertions passed  6.25s
  - External via REST with change tracking: 178,446 assertions passed  4.53s
  - JET database: 7,007 assertions passed  1.13s
  Total failed: 0 / 778,049  - External database PASSED  14.26s

 2.9. Multi thread process:
  - Create thread pool: 1 assertion passed  3.41ms
  - TSQLRestServerDB: 4,822 assertions passed  243.79ms
     1=17244/s  2=11551/s  5=7051/s  10=11197/s  30=8954/s  50=11300/s
  - TSQLRestClientDB: 4,822 assertions passed  306.72ms
     1=15081/s  2=8364/s  5=13439/s  10=8733/s  30=8952/s  50=4024/s
  - TSQLRestClientURINamedPipe: 2,412 assertions passed  1.52s
     1=1100/s  2=860/s  5=826/s
  - TSQLRestClientURIMessage: 3,222 assertions passed  208.30ms
     1=6856/s  2=9053/s  5=9823/s  10=7556/s
  - TSQLHttpClientWinHTTP_HTTPAPI: 4,822 assertions passed  578.86ms
     1=3085/s  2=4453/s  5=4717/s  10=4833/s  30=4836/s  50=4377/s
  - TSQLHttpClientWinSock_WinSock: 4,822 assertions passed  544.54ms
     1=5866/s  2=6364/s  5=7166/s  10=7437/s  30=6692/s  50=3140/s
  - Locked: 4,821 assertions passed  261.43ms
     1=15625/s  2=14931/s  5=13941/s  10=10071/s  30=7316/s  50=5524/s
  - Unlocked: 4,822 assertions passed  239.17ms
     1=14458/s  2=14536/s  5=11180/s  10=6079/s  30=17625/s  50=8629/s
  - Background thread: 4,822 assertions passed  657.61ms
     1=12185/s  2=14398/s  5=12565/s  10=6692/s  30=1915/s  50=1411/s
  - Main thread: 4,822 assertions passed  250.01ms
     1=12043/s  2=10033/s  5=11508/s  10=8379/s  30=16901/s  50=6852/s
  Total failed: 0 / 44,210  - Multi thread process PASSED  4.84s


Synopse framework used: 1.18.305
Running on wEight_64 with code page 1250
SQlite3 engine used: 3.8.6
Generated with: Delphi 2007 compiler

Time elapsed for all tests: 73.69s
Tests performed at 2014-10-01 16:08:21

Total assertions failed for all test suits:  203 / 16,990,850
! Some tests FAILED: please correct the code.

Done - Press ENTER to Exit

Michal

#185 Re: mORMot 1 » Cosmetic: Removing 3 warnings from SynDBDataset for XE7 » 2014-10-01 13:19:41

@ab,

This applies perhaps only XE7.
XE2 throws an error.

Michal

Board footer

Powered by FluxBB