Merge pull request #619 from v-kaywon/fixPDOTests

use varaibles for ksp related constants
This commit is contained in:
Yuki Wong 2017-12-05 13:11:24 -08:00 committed by GitHub
commit 75eac3425f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,9 @@ function getDSN($sqlsrvserver, $database, $keywords = '', $disableCE = false)
}
if ($keystore == "ksp" && !$disableCE) {
$ksp_path = getKSPPath();
$dsn .= "CEKeystoreProvider=$ksp_path;CEKeystoreName=KSP_NAME;CEKeystoreEncryptKey=ENCRYPT_KEY;";
$ksp_name = KSP_NAME;
$encrypt_key = ENCRYPT_KEY;
$dsn .= "CEKeystoreProvider=$ksp_path;CEKeystoreName=$ksp_name;CEKeystoreEncryptKey=$encrypt_key;";
}
if ($keywords) {
$dsn .= $keywords;