#2 Re: Delphi » Files, Blob, Sqlite3, Insert, Retrieve » 2024-08-18 16:12:56

first: what cause the blob based on rawbytestring hava a limit of a few MB?
second:exactly how many MB?
  thanks

#4 Re: mORMot 2 » A simple error I met,but i cannot make it. » 2024-08-15 12:56:29

I tried various value for these params , the error is always same .
e.m : id:= Database.Add(rec,true);
In this case,the forceID default value is false ,but the error is same.

#5 mORMot 2 » A simple error I met,but i cannot make it. » 2024-08-15 10:38:59

mormoter
Replies: 3

A rest orm server:

   server:  TserRestServerDB

   client:TRESTHttpClient

   model:TOrmBiolife = class(TOrm)

 
client:
    Rec := TOrmBiolife.Create;
  try
    Rec.Species_No := strtoint(NameEdit.Text);
    Rec.Category:='test';
    rec.Common_Name:='testname';
    id:= Database.Add(rec,true,true,false);   //failed to add,why ?   

server log is :
20240815 10053656  -    00.000.681
20240815 10054513  +    mormot.rest.sqlite3.TSqlRestServerDB(016560a0).URI POST lqf/Biolife in=120 B
20240815 10054513 EXC           ESqlite3Exception {Message:"Error SQLITE_CONSTRAINT (19) [Step] using 3.44.2 - NOT NULL constraint failed: BIOLIFE.ID, extended_errcode=1299",ErrorCode:19,SQLite3ErrorCode:"secCONSTRAINT"} [HttpSrv 8080lqf THttpApiSrv] at 010063f39d

Isnt  the Table id controlled by RestServer? I am confused,  can anyone help me ? thank you

#8 mORMot 2 » how to add/change the username and password? » 2024-07-30 03:36:46

mormoter
Replies: 3

Default : setUser('User','synopse');

this password is too simple,how to change it ? I dont know to reference which sample

#10 mORMot 2 » Does the Class TSQLTableToGrid in mormot1 disappear in mormot2? » 2024-07-27 13:08:30

mormoter
Replies: 2

as title
How can I  go on to use TSQLTableToGrid  or equivalent one?

#11 Re: mORMot 2 » About ReturnFileFromFolder in mORMot2 » 2024-07-27 12:35:13

procedure TSampleServer1.Example(C: TRestServerUriContext);
begin
  C.ReturnFileFromFolder('d:\www');
end;

why it doesnt work?

#12 Re: mORMot 2 » what is the difference among them? » 2024-07-27 09:57:31

thank you ,seems I should read the tutorial 1.18  more carefully

#13 mORMot 2 » what is the difference among them? » 2024-07-27 09:24:39

mormoter
Replies: 2

THttpServerRequest
THttpServerRequestAbstract
TSQLRestServerURIContext

I'm a little confused

#15 mORMot 1 » Some console info does not match » 2024-07-20 01:52:58

mormoter
Replies: 2

windows10 +fpc

execute the SQL   on the client with zeos :  select * from 测试      (测试 is  tablename and it does exist)

while the server console  give these:


20240720 01375433  # auth       mORMot.TSQLRestRoutingREST(07aa2180) User/1805053736 192.168.3.178
20240720 01375434  # call       mORMot.TSQLRestServerFullMemory(01581140) IRemoteSQL.Execute["select * from  测试",true,false]
20240720 01375434  ! DB    SynDBZeos.TSQLDBZEOSStatement(015f5e70) Prepare 120us select * from  测试
20240720 01375434  ! EXC   EZSQLException ("SQL Error: Table 'testdb.娴嬭瘯' doesn't exist \r\nCode: 1146 SQL: select * from  娴嬭瘯") [] at 0100290747

        ORM core Exception show me a wrong table name,  how to fix it? sir,thanks!

#16 mORMot 1 » Does not TSQLHttpServer support to use IPV6? » 2024-07-19 23:58:10

mormoter
Replies: 1

windows10+fpc3.4

I tried to run my test server  like this :TSQLHttpServer.Create('[::1]:'+PORT_NAME,[aServer],'+',useHttpSocket);

but in fact ,with the result of  command :netstat -an , no ipv6 address is being listening, so does not  TSQLHttpServer support to use IPV6?

#18 Re: mORMot 2 » TSqlDBZeosConnectionPropertiesnot found? » 2024-07-14 03:22:18

uses
  mormot.db.sql.odbc,
  mormot.db.sql,
  mormot.db.sql.zeos;

I undefined -NOSYNDBZEOS  in mormot2.lpk and mormot2UI.lpk and recompiled both ,reinstall UI one,  but error is still : Identifier not found "TSqlDBZEOSConnectionProperties"

but, "TSqlDBODBCConnectionProperties  is oK

#19 mORMot 1 » got an error when compile a sample mormot1+zeos » 2024-07-09 12:17:31

mormoter
Replies: 2

win10+lazarus3.4
 
installed zeos from online package manager

uses SynDBZeos

compiling...and it told  this:

    SynDBZeos.pas(190,3) Error: Cannot find ZURL used by SynDBZeos.

but  in fact,I can jump to ZURL,I dont know why it happen,any idea?thanks!

I've looked all over the internet, but no one has the same problem as me!

Board footer

Powered by FluxBB