You are not logged in.
This json, according to RFC 8259, is valid:
{field:"none",-1:"down",2:"up"}
But it doesn't pass in mORMot2
I would also love to see the functions and procedures of the SynCrossPlatformJSON unit in morMot2
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
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.
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?
Me too!
Please,
Where is the error in the code?
Ab,
What is the linux distribution you use for development?
Besides that, which ones could you also use without problems?
Dear ab,
Could you provide an example of your preferred technique?
Thank you very much.
God bless you
Hi Dear Administrator,
The sqlite3obj.7z is outdated.
Now is ok!
@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.
After this change , ceased to function correctly TPdfCanvas.RenderMetaFile function when exporting PDF.
Please do not damage what is working!
Hello ice1,
in TGDIPages...
You're right. There is no such need.
Thank you!
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;
Hi ab and friends,
How to render a TPdfDocument, TPdfDocumentGDI into TGdiPages without saving to disk?
You can show me an example?
I searched but did not find how to do.
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.
Excuse me,
It was my mistake
It's all right with the example
Hello ab
does not compile
I use XE6
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);
Then there is a problem. All Select's with many records returned not work.
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
There is no problem,
I was reading reading the documentation
I think is interesting demonstrate the application, only that
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!
I'll check these possibilities
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?
Yes,
but anyway, with the use of COALESCE does not work.
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
Thank you,
We will await with great interest!
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);
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?
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'
Arnaud,
Is there any plans to also support Redis?
You are right.
I will follow this direction
Thank you
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.
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?
Until now I get 10 000 lines almost instantly.
Hi,
How many lines are expected in the result?
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.
I understand the use of CreateAndFillPrepare but when I want to do a select on a view instead of a table?
Dear lele9,
You could write a few lines of code exemplifying his method?
dear colleagues,
How the gentlemen are doing to return a selection of a view?
"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.
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
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.
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;
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