You are not logged in.
Hi ab,
Delphi raises a "Combining signed and unsigned types" warning when using mormot.db.sql.zeos unit for line 393. I know it's nothing but we configured our compiler to not build applications if there is a warning.
I fixed my own copy. Here how i did it.
var
BrakedPos, BrakedPosEnd: integer;
begin
// return e.g. mysql://192.168.2.60:3306/world?username=root;password=dev
// make syntax like "ADO[ORACLE]"/"ADO[MSSQL]:"/"ADO[JET]" etc... possible
BrakedPos := PosExChar('[', aServerName);
BrakedPosEnd := PosExChar(']', aServerName);
if (BrakedPos > 0) and
((aServerName[Length(aServerName)] = ']') or
(aServerName[Length(aServerName) - 1] = ']')) then
begin
fServerName := Copy(aServerName, 1, BrakedPos - 1);
fDbmsName := Copy(aServerName, BrakedPos + 1, BrakedPosEnd - 1 - BrakedPos);
endbut i don't want to fix it every time i update my mormot2 for reasons
. I can change it and create a pull request but it's just a single line.
So, can you fixed it please?
Offline
Is it ok with https://github.com/synopse/mORMot2/commit/11bbb35cf ?
Offline
Yes, thank you ab.
Offline