Skip to content

Commit

Permalink
Fix support for sqlsrv and pdo_sqlsrv extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Mar 24, 2024
1 parent db8db3c commit 3d8c103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/extensions/sqlsrv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Function Get-SqlsrvReleaseVersion() {
return '5.9.0'
} elseif ($version -eq '7.4') {
return '5.10.1'
} elseif ($version -eq '8.0') {
return '5.11.1'
} else {
return 'latest'
}
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/extensions/sqlsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ get_sqlsrv_version() {
echo '5.9.0'
elif [[ "${version:?}" =~ 7.4 ]]; then
echo '5.10.1'
elif [[ "${version:?}" =~ 8.0 ]]; then
echo '5.11.1'
else
# Return an empty string so that pecl will install the latest version.
echo ''
Expand Down

0 comments on commit 3d8c103

Please sign in to comment.