--TEST-- Test for inserting and retrieving encrypted data of money types --DESCRIPTION-- No PDO::PARAM_ tpe specified when binding parameters --SKIPIF-- --FILE-- $inputValues[0], "c_rand" => $inputValues[1] ), null, $r); if (!isColEncrypted()) { if ($r === false) { echo "Default type should be compatible with $dataType.\n"; $success = false; } else { $sql = "SELECT * FROM $tbname"; $stmt = $conn->query($sql); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row["c_det"] != $inputValues[0] || $row["c_rand"] != $inputValues[1]) { echo "Incorrect output retrieved for datatype $dataType.\n"; $success = false; } } } else { if ($r === false) { if ($stmt->errorInfo()[0] != "22018") { echo "Incorrect error returned.\n"; $success = false; } } else { echo "$dataType is not compatible with any type.\n"; $success = false; } } if ($success) { echo "Test successfully done.\n"; } dropTable($conn, $tbname); } unset($stmt); unset($conn); } catch (PDOException $e) { echo $e->getMessage(); } ?> --EXPECT-- Testing smallmoney: Test successfully done. Testing money: Test successfully done.