Merge branch 'ent-12072-error-al-crear-item-sql-en-metaconsola-con-local-metaconsole' into 'develop'
fix error report sql pandora_enterprise#12072 See merge request artica/pandorafms!6458
This commit is contained in:
commit
e5ea35abca
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue