You are not logged in.
Pages: 1
Hi ab,
Thanks for return,
how can i do it in reconnecting?
Hello,
I am using the example 13 - StandAlone JSON SQL server, I changed the connection to use MySQL with ZEOS:
Props := TSQLDBZEOSConnectionProperties.Create('zdbc:mysql://localhost:3306/teste?username=root;password=root;MYSQL_OPT_RECONNECT=TRUE','teste', '', '');
The Process function of the standard return is UTF8 but after connection timeout of MySQL the process function returns AnsiString.
To test I put the MySQL server timeout 10 seconds.
Run SQL command that return with special character as select campo from teste
Return before timeout: [{"campo":"Está correto"}]
Return after timeout: [{"campo":"Está correto"}]
Please help
Hi,
What should I set to work the INSERT command with special character? Ex.: ç, é, á, à, ã...
**** server***
ModeloDados := TSQLModel.Create([], ROOT_NAME);
ModeloServicos := TSQLModel.Create([],'rap_services');
ServidorServicos := TSQLRestServerFullMemory.Create(ModeloServicos);
ServidorServicos.ServiceRegister(TServiceRemoteSQL,[TypeInfo(IRemoteSQL)], sicShared);
BaseDados := TSQLDBZEOSConnectionProperties.Create('zdbc:mysql://localhost:3306/rap?username=root;'+
'password=root;characterSetResults=utf8;'+
'MYSQL_OPT_RECONNECT=TRUE',
'teste', '', '');
BaseDados.ThreadingMode := tmMainConnection;
ConexaoBD := BaseDados.ThreadSafeConnection;
ServidorDados := TSQLRestServerFullMemory.Create(ModeloDados);
ServidorHTTP := TSQLHttpServer.Create('8080', [ServidorServicos]);
****client****
POST command INSERT: insert into testes (coluna) values ('Análise')
SQL Error: Incorrect string value: '\\xE1lise:...' for column 'coluna' at row 1
Great ab
Thanks for the help, is now working.
In mORMoti18n (line 1247) always puts as lngEnglish, even if I set i18nLanguageToRegistry(lngPortuguese).
I'm using the mORMot_and_Open_Source_friends_2015-02-16_211520_112f15efcb sources
Hi ab
I'm using mormot on an existing project but to call TimeToStr (Now) is returning with AM / PM (ex. "9:02:45 AM"). If I remove mormot project files the same function returns the time correctly (ex. "09:02:45").
In my Windows the default time format is HH: mm: ss (Portuguese Brazil).
I need the mormot work with the same format of my language in Windows.
On the server side.
Is ORM.
Yes, I hope that a second server mORMot to take care of the process if the first server is down.
The Oracle database server is on another host and already has failover.
Thanks for the quick return!
How can I implement failover with mormot?
Hi ab!
This is my first post on the forum and the first doubt.
I'm creating a MVC project with mORMot ...
On the client side i have multiple screens of the type CRUD:
1- Create TSQLHttpClientWinHTTP for each CRUD only with TSQLModel table used?
2 - Create TSQLHttpClientWinHTTP only once for all the project with TSQLModel creating all tables?
What is better?
Thanks,
Sergio Schelbauer
Pages: 1