Removed win32 ifdefs re connection resiliency (#802)

This commit is contained in:
Jenny Tam 2018-06-21 14:29:09 -07:00 коммит произвёл GitHub
Родитель 53e4da40de
Коммит 81ff0851ea
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -43,10 +43,8 @@ const char AttachDBFileName[] = "AttachDbFileName";
const char Authentication[] = "Authentication";
const char ColumnEncryption[] = "ColumnEncryption";
const char ConnectionPooling[] = "ConnectionPooling";
#ifdef _WIN32
const char ConnectRetryCount[] = "ConnectRetryCount";
const char ConnectRetryInterval[] = "ConnectRetryInterval";
#endif // _WIN32
const char Database[] = "Database";
const char Driver[] = "Driver";
const char Encrypt[] = "Encrypt";
@ -109,7 +107,6 @@ struct pdo_txn_isolation_conn_attr_func
static void func( connection_option const* /*option*/, _In_ zval* value_z, _Inout_ sqlsrv_conn* conn, std::string& /*conn_str*/ TSRMLS_DC );
};
#ifdef _WIN32
struct pdo_int_conn_str_func {
static void func( _In_ connection_option const* option, _In_ zval* value, sqlsrv_conn* /*conn*/, _Out_ std::string& conn_str TSRMLS_DC )
@ -125,7 +122,6 @@ struct pdo_int_conn_str_func {
conn_str += "};";
}
};
#endif // _WIN32
template <unsigned int Attr>
struct pdo_int_conn_attr_func {
@ -243,7 +239,6 @@ const connection_option PDO_CONN_OPTS[] = {
CONN_ATTR_STRING,
column_encryption_set_func::func
},
#ifdef _WIN32
{
PDOConnOptionNames::ConnectRetryCount,
sizeof( PDOConnOptionNames::ConnectRetryCount ),
@ -262,7 +257,6 @@ const connection_option PDO_CONN_OPTS[] = {
CONN_ATTR_INT,
pdo_int_conn_str_func::func
},
#endif // _WIN32
{
PDOConnOptionNames::Database,
sizeof( PDOConnOptionNames::Database ),

Просмотреть файл

@ -1112,10 +1112,8 @@ const char Driver[] = "Driver";
const char CharacterSet[] = "CharacterSet";
const char ConnectionPooling[] = "ConnectionPooling";
const char ColumnEncryption[] = "ColumnEncryption";
#ifdef _WIN32
const char ConnectRetryCount[] = "ConnectRetryCount";
const char ConnectRetryInterval[] = "ConnectRetryInterval";
#endif // _WIN32
const char Database[] = "Database";
const char Encrypt[] = "Encrypt";
const char Failover_Partner[] = "Failover_Partner";
@ -1168,10 +1166,8 @@ enum SQLSRV_CONN_OPTIONS {
SQLSRV_CONN_OPTION_KEYSTORE_PRINCIPAL_ID,
SQLSRV_CONN_OPTION_KEYSTORE_SECRET,
SQLSRV_CONN_OPTION_TRANSPARENT_NETWORK_IP_RESOLUTION,
#ifdef _WIN32
SQLSRV_CONN_OPTION_CONN_RETRY_COUNT,
SQLSRV_CONN_OPTION_CONN_RETRY_INTERVAL,
#endif // _WIN32
// Driver specific connection options
SQLSRV_CONN_OPTION_DRIVER_SPECIFIC = 1000,

Просмотреть файл

@ -95,7 +95,6 @@ struct bool_conn_str_func {
}
};
#ifdef _WIN32
struct int_conn_str_func {
static void func( _In_ connection_option const* option, _In_ zval* value, sqlsrv_conn* /*conn*/, _Out_ std::string& conn_str TSRMLS_DC )
@ -111,7 +110,6 @@ struct int_conn_str_func {
conn_str += "};";
}
};
#endif // _WIN32
template <unsigned int Attr>
struct int_conn_attr_func {
@ -188,10 +186,8 @@ const char Authentication[] = "Authentication";
const char CharacterSet[] = "CharacterSet";
const char ColumnEncryption[] = "ColumnEncryption";
const char ConnectionPooling[] = "ConnectionPooling";
#ifdef _WIN32
const char ConnectRetryCount[] = "ConnectRetryCount";
const char ConnectRetryInterval[] = "ConnectRetryInterval";
#endif // _WIN32
const char Database[] = "Database";
const char DateAsString[] = "ReturnDatesAsStrings";
const char Driver[] = "Driver";
@ -324,7 +320,6 @@ const connection_option SS_CONN_OPTS[] = {
CONN_ATTR_STRING,
column_encryption_set_func::func
},
#ifdef _WIN32
{
SSConnOptionNames::ConnectRetryCount,
sizeof( SSConnOptionNames::ConnectRetryCount ),
@ -343,7 +338,6 @@ const connection_option SS_CONN_OPTS[] = {
CONN_ATTR_INT,
int_conn_str_func::func
},
#endif // _WIN32
{
SSConnOptionNames::Database,
sizeof( SSConnOptionNames::Database ),