Skip to content

Commit a1f7e58

Browse files
authored
Merge 8d4c6c3 into d79a62a
2 parents d79a62a + 8d4c6c3 commit a1f7e58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/shared/core_conn.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ sqlsrv_conn* core_sqlsrv_connect( _In_ sqlsrv_context& henv_cp, _In_ sqlsrv_cont
163163
CHECK_CUSTOM_ERROR(conn->ce_option.enabled && conn->driver_version == ODBC_DRIVER::VER_13, conn, SQLSRV_ERROR_CE_DRIVER_REQUIRED, get_processor_arch(), NULL) {
164164
throw core::CoreException();
165165
}
166-
166+
if (conn->driver_version == ODBC_DRIVER::VER_13) {
167+
zend_error(E_DEPRECATED, "ODBC driver version 13 is deprecated, please consider upgrading to the latest version.");
168+
}
167169
#ifndef _WIN32
168170
// check if the ODBC driver actually exists, if not, throw an exception
169171
CHECK_CUSTOM_ERROR(!core_search_odbc_driver_unix(conn->driver_version), conn, SQLSRV_ERROR_SPECIFIED_DRIVER_NOT_FOUND) {

0 commit comments

Comments
 (0)