Skip to content
Snippets Groups Projects
Commit e865d706 authored by Regis Houssin's avatar Regis Houssin
Browse files

Todo: récuperer les infos du serveur et des tables

parent 233ef80f
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') ...@@ -48,11 +48,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
$sql = "SHOW TABLE STATUS"; $sql = "SHOW TABLE STATUS";
$base=1; $base=1;
} }
if ($conf->db->type == 'pgsql') else if ($conf->db->type == 'pgsql')
{ {
$sql = "SELECT conname, contype FROM pg_constraint;"; $sql = "SELECT conname, contype FROM pg_constraint;";
$base=2; $base=2;
} }
else if ($conf->db->type == 'mssql')
{
//TODO: rcuprer les infos du serveur
//$sqls[0] = "";
//$base=3;
}
if (! $base) if (! $base)
{ {
......
...@@ -54,11 +54,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') ...@@ -54,11 +54,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
$sql = "SHOW TABLE STATUS"; $sql = "SHOW TABLE STATUS";
$base=1; $base=1;
} }
if ($conf->db->type == 'pgsql') else if ($conf->db->type == 'pgsql')
{ {
$sql = "SELECT conname, contype FROM pg_constraint;"; $sql = "SELECT conname, contype FROM pg_constraint;";
$base=2; $base=2;
} }
else if ($conf->db->type == 'mssql')
{
//TODO: rcuprer les infos du serveur
//$sqls[0] = "";
//$base=3;
}
if (! $base) if (! $base)
......
...@@ -58,11 +58,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') ...@@ -58,11 +58,17 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli')
$sqls[1] = "SHOW STATUS"; $sqls[1] = "SHOW STATUS";
$base=1; $base=1;
} }
if ($conf->db->type == 'pgsql') else if ($conf->db->type == 'pgsql')
{ {
$sqls[0] = "select name,setting from pg_settings;"; $sqls[0] = "select name,setting from pg_settings;";
$base=2; $base=2;
} }
else if ($conf->db->type == 'mssql')
{
//TODO: rcuprer les infos du serveur
//$sqls[0] = "";
//$base=3;
}
if (! $base) if (! $base)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment