fix: version response will be an object

This commit is contained in:
hackerESQ
2025-02-25 20:16:13 -06:00
parent 6cff252813
commit 6dea75651b
+2 -2
View File
@@ -260,8 +260,8 @@ class Holding extends Model
// Determine if running MySQL or MariaDB
$versionString = Arr::get(
DB::select('SELECT VERSION() as version;'),
'0.version', ''
);
'0', new \stdClass
)->version;
if (stripos($versionString, 'MariaDB') !== false) {
$max_recursion_var_name = 'max_recursive_iterations'; // Must be MariaDB
}