Todo: rcuperer les infos du serveur et des tables
This commit is contained in:
parent
233ef80f6d
commit
e865d706fd
@ -48,11 +48,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
$base=1;
|
||||
}
|
||||
if ($conf->db->type == 'pgsql')
|
||||
else if ($conf->db->type == 'pgsql')
|
||||
{
|
||||
$sql = "SELECT conname, contype FROM pg_constraint;";
|
||||
$base=2;
|
||||
}
|
||||
else if ($conf->db->type == 'mssql')
|
||||
{
|
||||
//TODO: récupérer les infos du serveur
|
||||
//$sqls[0] = "";
|
||||
//$base=3;
|
||||
}
|
||||
|
||||
if (! $base)
|
||||
{
|
||||
|
||||
@ -54,11 +54,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
$base=1;
|
||||
}
|
||||
if ($conf->db->type == 'pgsql')
|
||||
else if ($conf->db->type == 'pgsql')
|
||||
{
|
||||
$sql = "SELECT conname, contype FROM pg_constraint;";
|
||||
$base=2;
|
||||
}
|
||||
else if ($conf->db->type == 'mssql')
|
||||
{
|
||||
//TODO: récupérer les infos du serveur
|
||||
//$sqls[0] = "";
|
||||
//$base=3;
|
||||
}
|
||||
|
||||
|
||||
if (! $base)
|
||||
|
||||
@ -58,11 +58,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
|
||||
$sqls[1] = "SHOW STATUS";
|
||||
$base=1;
|
||||
}
|
||||
if ($conf->db->type == 'pgsql')
|
||||
else if ($conf->db->type == 'pgsql')
|
||||
{
|
||||
$sqls[0] = "select name,setting from pg_settings;";
|
||||
$base=2;
|
||||
}
|
||||
else if ($conf->db->type == 'mssql')
|
||||
{
|
||||
//TODO: récupérer les infos du serveur
|
||||
//$sqls[0] = "";
|
||||
//$base=3;
|
||||
}
|
||||
|
||||
if (! $base)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user