--TEST-- Test for inserting and retrieving encrypted data of string types --DESCRIPTION-- Bind params using sqlsrv_prepare without any sql_type specified --SKIPIF-- --FILE-- colName => $inputValues[0], $colMetaArr[1]->colName => $inputValues[1] ), $r); if ($r === false) { is_incompatible_types_error($dataType, "default type"); } else { echo "****Encrypted default type is compatible with encrypted $dataType****\n"; AE\fetchAll($conn, $tbname); } dropTable($conn, $tbname); } sqlsrv_free_stmt($stmt); sqlsrv_close($conn); ?> --EXPECT-- Testing char(5): ****Encrypted default type is compatible with encrypted char(5)**** c_det: -leng c_rand: th, n Testing varchar(max): ****Encrypted default type is compatible with encrypted varchar(max)**** c_det: Use varchar(max) when the sizes of the column data entries vary considerably, and the size might exceed 8,000 bytes. c_rand: Each non-null varchar(max) or nvarchar(max) column requires 24 bytes of additional fixed allocation which counts against the 8,060 byte row limit during a sort operation. Testing nchar(5): ****Encrypted default type is compatible with encrypted nchar(5)**** c_det: -leng c_rand: th Un Testing nvarchar(max): ****Encrypted default type is compatible with encrypted nvarchar(max)**** c_det: When prefixing a string constant with the letter N, the implicit conversion will result in a Unicode string if the constant to convert does not exceed the max length for a Unicode string data type (4,000). c_rand: Otherwise, the implicit conversion will result in a Unicode large-value (max).