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?
Proxy compilation warnings
Proxy compilation warnings
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Proxy compilation warnings
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.
Re: Proxy compilation warnings
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.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: Proxy compilation warnings
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 :)
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.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Proxy compilation warnings
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.
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/
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/
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Proxy compilation warnings
Thank you
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.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.