Update sqlsrv and pdo_sqlsrv versions [skip ci]

This commit is contained in:
Shivam Mathur
2026-02-28 02:22:42 +05:30
parent d042aafd13
commit 769a4a81fd
3 changed files with 34 additions and 13 deletions

View File

@@ -9,6 +9,8 @@ Function Get-SqlsrvReleaseVersion() {
return '5.10.1'
} elseif ($version -eq '8.0') {
return '5.11.1'
} elseif ($version -match '8.[1-2]') {
return '5.12.0'
} else {
return 'latest'
}

View File

@@ -6,6 +6,8 @@ get_sqlsrv_version() {
echo '5.10.1'
elif [[ "${version:?}" =~ 8.0 ]]; then
echo '5.11.1'
elif [[ "${version:?}" =~ 8.[1-2] ]]; then
echo '5.12.0'
else
# Return an empty string so that pecl will install the latest version.
echo ''