fix error report sql pandora_enterprise#12072

This commit is contained in:
daniel 2023-09-18 11:55:01 +02:00
parent 6ecd8ca899
commit b167a4b4c5
1 changed files with 4 additions and 0 deletions

View File

@ -2567,6 +2567,10 @@ function db_get_column_type(string $table, string $column='')
*/
function db_validate_sql(string $sql, $server=false)
{
if ($server == 0) {
$server = false;
}
if ($server !== false && is_metaconsole() === true) {
$setup = metaconsole_get_connection($server);
if (metaconsole_connect($setup) !== NOERR) {