We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae93cf commit 515b014Copy full SHA for 515b014
utils/behat-tags.php
@@ -98,12 +98,10 @@ function get_db_type_and_version() {
98
exec( $cmd, $output, $return_code );
99
$version_string = isset( $output[0] ) ? $output[0] : '';
100
101
- // If the connection failed, return defaults.
+ // If the connection failed, fall back to client binary version.
102
if ( 0 !== $return_code || empty( $version_string ) ) {
103
- return array(
104
- 'type' => 'mysql',
105
- 'version' => '',
106
- );
+ $client_version_cmd = sprintf( '%s --version 2>/dev/null', escapeshellcmd( $client_binary ) );
+ $version_string = exec( $client_version_cmd );
107
}
108
109
// Detect database type from server version string.
0 commit comments