Proxy compilation warnings

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 765
Joined: 18.11.2018, 17:37
Location: Hungary

Proxy compilation warnings

Post by aehimself »

I just refreshed my Zeos repo and I am greeted with the following:

[dcc64 Hint] ZDbcProxy.pas(105): H2269 Overriding virtual method 'TZDbcProxyConnection.AfterConstruction' has lower visibility (protected) than base class 'TZAbstractSingleTxnConnection' (public)
[dcc64 Hint] ZDbcProxyResultSet.pas(1532): H2077 Value assigned to 'TZDbcProxyResultSet.MoveAbsolute' never used
[dcc64 Warning] ZDbcBeginnerStatement.pas(1563): W1057 Implicit string cast from 'RawByteString' to 'string'
[dcc64 Hint] ZDbcProxy.pas(333): H2164 Variable 'PlainDrv' is declared but never used in 'TZDbcProxyConnection.AfterConstruction'
[dcc64 Warning] ZDbcProxy.pas(366): W1058 Implicit string cast with potential data loss from 'string' to 'RawByteString'
[dcc64 Warning] ZDbcProxy.pas(371): W1057 Implicit string cast from 'RawByteString' to 'string'
[dcc64 Warning] ZDbcProxy.pas(541): W1058 Implicit string cast with potential data loss from 'string' to 'RawByteString'
[dcc64 Warning] ZDbcProxy.pas(546): W1057 Implicit string cast from 'RawByteString' to 'string'

@Jan, do you want me to fix these or you are already on it?
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: Proxy compilation warnings

Post by marsupilami »

And here I thought I fixed the visibility thing already... I am not working on fixing those warnings yet. It will take another couple of days until I get to do that because the corresponding server needs more work done more urgently. If you want to fix these warnings, I will be happy to apply the patch. :)
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 765
Joined: 18.11.2018, 17:37
Location: Hungary

Re: Proxy compilation warnings

Post by aehimself »

These are easy to be fixed. Leave them to me, I'll take care of 'em before I look into the failing tests this afternoon.
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 765
Joined: 18.11.2018, 17:37
Location: Hungary

Re: Proxy compilation warnings

Post by aehimself »

Done, it got appended to the currently open pull request.
This way it's fine in Delphi, I hope it will be warning-free in FPC too.

I think it's time for me to download Lazarus so I can test-compile at least :)
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Proxy compilation warnings

Post by EgonHugeist »

Thoughts:

It would be nice to omit the ZDBcBeginnerStatement unit. It just re implements the old 7.2 logic. Jan did use it because he oftenly is switching between 7.2 and Zeos 8. It's time to remove the unit. The should not be part of Zeos8.
I've added a TZBeginnerPreparedStatement class in ZDbcStatement.pas instead. Upgrading the proxy-statment won't be soo compilcated.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: Proxy compilation warnings

Post by marsupilami »

aehimself wrote: 28.01.2021, 19:50 Done, it got appended to the currently open pull request.
This way it's fine in Delphi, I hope it will be warning-free in FPC too.

I think it's time for me to download Lazarus so I can test-compile at least :)
Thank you :)
EgonHugeist wrote: 29.01.2021, 05:45 I've added a TZBeginnerPreparedStatement class in ZDbcStatement.pas instead. Upgrading the proxy-statment won't be soo compilcated.
I will set up some tests. Then we can change to the new TZBeginnerPreparedStatement. With the tests we have a chance to see if everything is still working after the changes.
Post Reply