CONCPP-140 Marked reset and reconnect Connection methods deprecated

This commit is contained in:
Lawrin Novitsky
2025-02-24 01:22:08 +01:00
parent e25877bba3
commit 1365645497
2 changed files with 8 additions and 2 deletions

View File

@ -98,8 +98,13 @@ public:
virtual int32_t getNetworkTimeout()=0;
virtual SQLString getSchema()=0;
virtual void setSchema(const SQLString& arg0)=0;
/**
* @deprecated This method is deprecated and will be removed in future versions.
*/
virtual void reset()=0;
/**
* @deprecated This method is deprecated and will be removed in future versions.
*/
virtual bool reconnect()=0;
virtual Connection* setClientOption(const SQLString& name, void* value)=0;

View File

@ -1,6 +1,6 @@
/*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* 2020, 2023 MariaDB Corporation AB
* 2020, 2025 MariaDB Corporation plc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
@ -3194,6 +3194,7 @@ void connection::cached_sha2_auth()
created_objects.clear();
//need to close connection, otherwise will use fast auth!
con->close();
// we can't really know, if we used the key from the given file :/
con.reset(driver->connect(opts));
}
catch(std::exception &/*e*/)