--TEST-- Test for inserting and retrieving encrypted data of string types --DESCRIPTION-- No PDO::PARAM_ type specified when binding parameters --SKIPIF-- --FILE-- $inputValues[0], "c_rand" => $inputValues[1] ), null, $r); if ($r === false) { isIncompatibleTypesError($stmt, $dataType, "default type"); } else { echo "****Encrypted default type is compatible with encrypted $dataType****\n"; fetchAll($conn, $tbname); } dropTable($conn, $tbname); } unset($stmt); unset($conn); } catch (PDOException $e) { echo $e->getMessage(); } ?> --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).