mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-07-20 16:35:25 +00:00
CONCPP-140 Marked reset and reconnect Connection methods deprecated
This commit is contained in:
@ -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;
|
||||
|
@ -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*/)
|
||||
|
Reference in New Issue
Block a user