#1 mORMot 1 » Invalid Json » 2022-12-14 12:13:02

eraldo
Replies: 1

This json, according to RFC 8259, is valid:

{field:"none",-1:"down",2:"up"}

But it doesn't pass in mORMot2

#2 Re: mORMot 1 » Mormot2, Delphi and arm devices » 2021-12-27 10:19:53

I would also love to see the functions and procedures of the SynCrossPlatformJSON unit in morMot2

#3 Re: mORMot 1 » Error Compiling Project in Samples 02 » 2019-07-23 15:07:46

Hi ab

I tested on Delphi Rio

To be more exact, the error occurs in the procedure TAESPRNG.Seed;  in  SynCrypto.pas

procedure TAESPRNG.Seed;
var key: THash512Rec;
    entropy: RawByteString;
begin
  try
    entropy := GetEntropy(128); // 128 bytes is the HMAC_SHA512 key block size
    PBKDF2_HMAC_SHA512(entropy,ExeVersion.User,fSeedPBKDF2Rounds,key.b);     //<< In this line!
    fSafe^.Lock;
    try

I made sure I don't have incompatible versions

#4 mORMot 1 » Error Compiling Project in Samples 02 » 2019-07-22 15:57:37

eraldo
Replies: 3

Hi,

Today I downloaded the daily snapshot and detected an error while trying to compile.

The error occurred on line 39819>
  TAESPRNG.Main.Fill (@ fSessionCounter, SizeOf (fSessionCounter));

If you comment the line, pass.

#5 mORMot 1 » Possible problem with static .obj SQLite3 and query with FTS tables » 2018-06-12 18:37:32

eraldo
Replies: 0

I found a possible problem  with the TSQLite3LibraryStatic library in queries on FTS tables using the operator "-"


For example, the query below does not work with TSQLite3LibraryStatic 

SELECT * FROM docs WHERE docs MATCH 'sqlite -database';

Using an exernal SQLite3 library engine works normally

Some colleague has already encountered this problem?

#7 Re: mORMot 1 » Stucked at deserialization » 2017-09-30 02:45:38

Please,

Where is the error in the code?

#8 Re: mORMot 1 » any possible that mORMot Framework be acquired by embarcadero someday » 2017-09-05 11:48:04

Ab,

What is the linux distribution you use for development?
Besides that, which ones could you also use without problems?

#9 Re: mORMot 1 » does mORMot application work together on three or more servers ? » 2017-08-16 13:59:36

Dear ab,

Could you provide an example of your preferred technique?

#10 Re: mORMot 1 » compiling sqlite » 2017-06-08 01:03:02

Thank you very much.
God bless you

#11 Re: mORMot 1 » compiling sqlite » 2017-06-05 18:58:53

Hi Dear Administrator,

The sqlite3obj.7z is outdated.

#13 Re: PDF Engine » some modification for matrix printer » 2016-04-12 15:57:30

ab wrote:

@eraldo

Sorry to hear that.
But the patch was documented as BREAKING CHANGE...

Is it just about the newly introduced parameter?
Or is there a regression once you set properly ScaleX and ScaleY ?


Hi,
Compilling the example TestSQLite3Pages.dpr you can see that now does not export the PDF correctly.

#14 Re: PDF Engine » some modification for matrix printer » 2016-04-12 11:43:39

After this change , ceased to function correctly TPdfCanvas.RenderMetaFile function when exporting PDF.

Please do not damage what is working!

#17 PDF Engine » Option to set the number of copies in function TGDIPages.PrintPages( » 2015-08-19 15:39:15

eraldo
Replies: 2

Hello ab,
It would be possible to add the option to pre-determine the number of copies in the function
TGDIPages.PrintPages function (PrintFrom, PrintTo: integer): boolean; ?


something like

function TGDIPages.PrintPages(PrintFrom, PrintTo, Copies: integer): boolean;



Or a property...something like
  property Copies: integer read fCopies write SetCopies/fCopies;

#18 PDF Engine » How to render a TPdfDocument into TGdiPages? » 2015-07-23 12:21:31

eraldo
Replies: 2

Hi ab and friends,

How to render a TPdfDocument, TPdfDocumentGDI into TGdiPages without saving to disk?

#19 Re: PDF Engine » Preview for TPdfDocument before saving to disk » 2015-07-21 18:45:59

You can show me an example?
I searched but did not find how to do.

#20 PDF Engine » Preview for TPdfDocument before saving to disk » 2015-07-21 12:59:33

eraldo
Replies: 2

Hi ab,

How could I have a preview of TPdfDocument, TPdfDocumentGDI  without saving to disk?
As with the TGDIPages through the procedure ShowPreviewForm...
I would like to stop using the FastReport but the preview is important.

#23 Re: mORMot 1 » Problem with function TSQLDBWinHTTPConnectionProperties.Execute » 2015-03-27 17:52:11

Hello ab


Did you mean: Acredito ter descoberto o problema. Antes em SynDB: function TSQLDBProxyConnection Protocol.HandleInput(const input: RawByteString): RawByteString; begin result := input; end; now em SynDB: function TSQLDBRemoteConnection Protocol.HandleInput(const input: RawByteString): RawByteString; begin result := Input; SymmetricEncrypt(REMOTE_MAGIC,result); result := SynLZDecompress(result); end; Se o input for com length = 6000 funciona bem Se o input for com length = 10000 ocorre um erro na função SynLZDecompress(result);
I believe I have found the problem.

Before SynDB in:
TSQLDBProxyConnectionProtocol.HandleInput function (const input: RawByteString): RawByteString;
begin
   result: = input;
end;

now in SynDB:
TSQLDBRemoteConnectionProtocol.HandleInput function (const input: RawByteString): RawByteString;
begin
   result: = Input;
   SymmetricEncrypt (REMOTE_MAGIC, result);
   result: = SynLZDecompress (result);
end;

If the input for with length = 6000 works well
If the input for with length = 10000 an error occurs in SynLZDecompress function (result);

#24 Re: mORMot 1 » Problem with function TSQLDBWinHTTPConnectionProperties.Execute » 2015-03-27 16:11:12

Then there is a problem. All Select's with many records returned not work.

#25 mORMot 1 » Problem with function TSQLDBWinHTTPConnectionProperties.Execute » 2015-03-27 14:33:18

eraldo
Replies: 4

Hello ab,


Excuse me but there is a limitation or new parameter to limit the amount of records returned in a Select with this function?

I updated the sources and when a Select have to return more than 100 records an error occurs. When, for example, the result is only 10 records, running normal.


Thanks
Eraldo

#26 Re: mORMot 1 » Example usage of events (OnSessionCreate and OnSessionClosed) » 2015-02-27 13:43:02

There is no problem,

I was reading reading the documentation

I think is interesting demonstrate the application, only that

#27 mORMot 1 » Example usage of events (OnSessionCreate and OnSessionClosed) » 2015-02-27 13:19:10

eraldo
Replies: 2

Hi,

In which the conditions OnSessionCreate event is triggered?

In the examples, there is no implementing it.

Ab, would be possible to add this in an example


Thanks!

#29 mORMot 1 » Problem with CreateRegExpFunction » 2014-12-08 00:36:53

eraldo
Replies: 2

Hello everyone,

After a few hours of no activity on the server, the REGEXP function stops working ..

All the rest Confinued functioning normally. Only this function stops working.

Someone has gone through this?

#30 Re: mORMot 1 » ESQLDBRemote exception "invalid ColTypes[0]=0" » 2014-11-21 16:02:45

Yes,
but anyway, with the use of COALESCE does not work.

#31 mORMot 1 » ESQLDBRemote exception "invalid ColTypes[0]=0" » 2014-11-21 12:32:58

eraldo
Replies: 3

ab,

As I run the sql:
'SELECT column FROM anytable;' executes successfully.

but..

'SELECT COALESCE (column, 0) as column FROM anytable;' does not run


Generates the error below


Erro

#32 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-21 10:57:43

Thank you,

We will await with great interest!

#33 Re: mORMot 1 » HTTP remote access for SynDB SQL execution » 2014-11-21 00:00:19

ab,

How can I run multiple commands (Drop, Create, Insert) within the same transaction?
Just as in the example:
         TSQLDBSQLite3Connection (MainConnection) .StartTransaction;
         TSQLDBSQLite3Connection (MainConnection) .DB.ExecuteAll (script.Text);

#34 mORMot 1 » Conflict: TJpegImage in SynGdiPlus and Vcl.Imaging.jpeg; » 2014-11-12 15:32:06

eraldo
Replies: 1

Hi,

I can not use the unit mORIMotOLogin in my system because of the conflict with TJPEGImage that is SynGdiPlus and Vcl.Imaging.jpeg.


Does anyone have a solution?

#35 mORMot 1 » Undeclared identifier: 'AsLongWord' » 2014-03-27 12:52:21

eraldo
Replies: 1

Hello,
At last there is a problem with compiling "AsLongWord"
On line 525 of SynVirtualDataSet.pas unit
Using Delphi XE2.

[DCC Error] SynVirtualDataset.pas (525): E2003 Undeclared identifier: 'AsLongWord'

#36 mORMot 1 » Support for Redis » 2014-03-11 06:36:19

eraldo
Replies: 0

Arnaud,

Is there any plans to also support Redis?

#37 Re: mORMot 1 » why the DB is locked » 2013-06-04 15:37:32

You are right.
I will follow this direction
Thank you

#38 Re: mORMot 1 » why the DB is locked » 2013-06-04 11:43:42

The problem is that i have an application using SQLite DB today.
And i would like to make the transition gradually...
So. The Sqlite DB would be accessed via REST and also in the traditional way.
Understand? TSQLDBSQLite3ConnectionProperties in legacy applications and TSQLHttpClient in the new model.

Could you show me where the blockage occurs in Sqlite DB? I searched but did not find or did not understand.

#39 Re: mORMot 1 » why the DB is locked » 2013-06-03 20:59:37

Hi,


If you need to use another tool to do the maintenance on the database, but you can't stop the mMORot server. What is the solution?

#40 Re: mORMot 1 » 995 error in server - can mormot split packages? » 2013-06-03 15:38:59

Until now I get 10 000 lines almost instantly.

#41 Re: mORMot 1 » 995 error in server - can mormot split packages? » 2013-06-03 15:09:06

Hi,

How many lines are expected in the result?

#42 Re: mORMot 1 » Return a selection of a view » 2013-06-03 11:42:04

Thank lele9,

Really i'm speaking about the DB view.

The ab is correct. I'm currently using interface-based service, to return to the client a select on a view.

I imagined that someone could be doing this in another way.

#43 Re: mORMot 1 » Return a selection of a view » 2013-06-02 00:59:26

I understand the use of CreateAndFillPrepare but when I want to do a select on a view instead of a table?

#44 Re: mORMot 1 » Return a selection of a view » 2013-06-01 15:05:34

Dear lele9,

You could write a few lines of code exemplifying his method?

#45 mORMot 1 » Return a selection of a view » 2013-05-31 17:06:13

eraldo
Replies: 7

dear colleagues,

How the gentlemen are doing to return a selection of a view?

#46 Re: mORMot 1 » Putting mORMot on top of existing databases » 2013-05-29 17:40:45

"git doesn't have tickets, wiki nor Blog/News"...

Sorry for those who think differently

I do not see many advantages to consider GitHub...

I believe there are more important tasks to be considered.

#47 mORMot 1 » Compile in Lazarus » 2013-05-27 21:08:11

eraldo
Replies: 2

Hi,

I would like to install the server mORMot (SQLite DB) in a VPS (Linux CentOS or Debian)
Do you have any plans for when you want to support Lazarus?


Congratulations to mORMot

#48 Re: mORMot 1 » Some example with sqlite3_busy_handler » 2013-04-16 21:41:52

eraldo wrote:

Dear admin,

. BusyTimeout does not work...

I try to enter a value greater than 0 but does not work.

  vdb: = TSQLRestServerDB.Create (dm.Model, StringToUTF8 ('base');
  vdb.DB.BusyTimeout: = 2000;


excuse me.
The property BusyTimeout works perfectly.

The confusion was mine.

#49 Re: mORMot 1 » Some example with sqlite3_busy_handler » 2013-04-16 19:20:44

Dear admin,

. BusyTimeout does not work...

I try to enter a value greater than 0 but does not work.

  vdb: = TSQLRestServerDB.Create (dm.Model, StringToUTF8 ('base');
  vdb.DB.BusyTimeout: = 2000;

#50 mORMot 1 » Some example with sqlite3_busy_handler » 2013-04-16 15:20:50

eraldo
Replies: 3

Hello,
 
could someone be kind enough to write a few lines of code using the function sqlite3_busy_handler?



Dear admin,


you can implement the routine to sets a callback function busy_handler in TSQLDataBase?

Thanks

Board footer

Powered by FluxBB