From 99f27700b1c5175409bbe7511869677b98099548 Mon Sep 17 00:00:00 2001 From: v-kaywon Date: Tue, 19 Dec 2017 15:17:01 -0800 Subject: [PATCH] add comments about ae not supporting parameters in select list --- test/functional/pdo_sqlsrv/pdo_param_output_select_variant.phpt | 1 + test/functional/pdo_sqlsrv/pdo_prepare_attribute.phpt | 1 + .../pdo_sqlsrv/test_encoding_UTF8_emulate_prepare.phpt | 1 + 3 files changed, 3 insertions(+) diff --git a/test/functional/pdo_sqlsrv/pdo_param_output_select_variant.phpt b/test/functional/pdo_sqlsrv/pdo_param_output_select_variant.phpt index 70ac158d..035fd715 100644 --- a/test/functional/pdo_sqlsrv/pdo_param_output_select_variant.phpt +++ b/test/functional/pdo_sqlsrv/pdo_param_output_select_variant.phpt @@ -81,6 +81,7 @@ try { dropTable($conn, $tableName); unset($conn); } catch (Exception $e) { + // binding parameters in the select list is not supported with Column Encryption $expMsg = "Implicit conversion from data type sql_variant to nvarchar(max) is not allowed. Use the CONVERT function to run this query."; $aeExpMsg = "Invalid Descriptor Index"; checkError($e, $expMsg, $aeExpMsg); diff --git a/test/functional/pdo_sqlsrv/pdo_prepare_attribute.phpt b/test/functional/pdo_sqlsrv/pdo_prepare_attribute.phpt index bb961052..d0da03e1 100644 --- a/test/functional/pdo_sqlsrv/pdo_prepare_attribute.phpt +++ b/test/functional/pdo_sqlsrv/pdo_prepare_attribute.phpt @@ -48,6 +48,7 @@ if (!isAEConnected()) { $s = $db->prepare("SELECT :prefix + TITLE FROM cd_info GROUP BY :prefix + TITLE", $option); $s->bindValue(':prefix', ""); } else { + // binding parameters in the select list is not supported with Column Encryption $s = $db->prepare("SELECT TITLE FROM cd_info GROUP BY TITLE", $option); } $s->execute(); diff --git a/test/functional/pdo_sqlsrv/test_encoding_UTF8_emulate_prepare.phpt b/test/functional/pdo_sqlsrv/test_encoding_UTF8_emulate_prepare.phpt index 7b8baa5c..3ac120d2 100644 --- a/test/functional/pdo_sqlsrv/test_encoding_UTF8_emulate_prepare.phpt +++ b/test/functional/pdo_sqlsrv/test_encoding_UTF8_emulate_prepare.phpt @@ -82,6 +82,7 @@ try { dropTable($conn, $tbname); unset($conn); } catch (PDOexception $e) { + // binding parameters in the select list is not supported with Column Encryption $expMsg = "Statement with emulate prepare on does not support output or input_output parameters."; $aeExpMsg = "Invalid Descriptor Index"; checkError($e, $expMsg, $aeExpMsg);