diff --git a/source/pdo_sqlsrv/pdo_util.cpp b/source/pdo_sqlsrv/pdo_util.cpp index faf89552..1021fd29 100644 --- a/source/pdo_sqlsrv/pdo_util.cpp +++ b/source/pdo_sqlsrv/pdo_util.cpp @@ -411,11 +411,11 @@ pdo_error PDO_ERRORS[] = { }, { PDO_SQLSRV_ERROR_CE_DIRECT_QUERY_UNSUPPORTED, - { IMSSP, (SQLCHAR*) "Connection with Column Encryption enabled do no support PDO::SQLSRV_ATTR_DIRECT_QUERY with binding parameters.", -81, false } + { IMSSP, (SQLCHAR*) "Parameterized statement with attribute PDO::SQLSRV_ATTR_DIRECT_QUERY is not supported in a Column Encryption enabled Connection.", -81, false } }, { PDO_SQLSRV_ERROR_CE_EMULATE_PREPARE_UNSUPPORTED, - { IMSSP, (SQLCHAR*) "Connection with Column Encryption enabled do no support PDO::ATTR_EMULATE_PREPARES with binding parameters.", -82, false } + { IMSSP, (SQLCHAR*) "Parameterized statement with attribute PDO::ATTR_EMULATE_PREPARES is not supported in a Column Encryption enabled Connection.", -82, false } }, { UINT_MAX, {} } }; diff --git a/test/functional/pdo_sqlsrv/pdo_ae_unsupported_stmt_attr.phpt b/test/functional/pdo_sqlsrv/pdo_ae_unsupported_stmt_attr.phpt index 9a2cbfcb..6d482197 100644 --- a/test/functional/pdo_sqlsrv/pdo_ae_unsupported_stmt_attr.phpt +++ b/test/functional/pdo_sqlsrv/pdo_ae_unsupported_stmt_attr.phpt @@ -24,7 +24,7 @@ try { if (isColEncrypted()) { if ($error[0] != "IMSSP" || $error[1] != -81 || - $error[2] != "Connection with Column Encryption enabled do no support PDO::SQLSRV_ATTR_DIRECT_QUERY with binding parameters.") { + $error[2] != "Parameterized statement with attribute PDO::SQLSRV_ATTR_DIRECT_QUERY is not supported in a Column Encryption enabled Connection.") { echo "An unexpected exception was caught.\n"; var_dump($error); } @@ -43,7 +43,7 @@ try { if (isColEncrypted()) { if ($error[0] != "IMSSP" || $error[1] != -82 || - $error[2] != "Connection with Column Encryption enabled do no support PDO::ATTR_EMULATE_PREPARES with binding parameters.") { + $error[2] != "Parameterized statement with attribute PDO::ATTR_EMULATE_PREPARES is not supported in a Column Encryption enabled Connection.") { echo "An unexpected exception was caught.\n"; var_dump($error); }