mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
fix for Bugs:
- mail from Thomas Hackl: newest cal upgrades (performance patch) - wiki upgrade probs under postgesql - [ 948279 ] upgrade postgresql 0.9.14-0.9.15 implemented index_names for pgsql db-type (there's no equivalent function in ADOdb)
This commit is contained in:
parent
da83e39c89
commit
39b2c216fd
@ -788,8 +788,22 @@
|
||||
*/
|
||||
function index_names()
|
||||
{
|
||||
echo "<p>db::index_names() not yet implemented</p>\n";
|
||||
return array();
|
||||
$indices = array();
|
||||
if ($this->Type != 'pgsql')
|
||||
{
|
||||
echo "<p>db::index_names() not yet implemented for db-type '$this->Type'</p>\n";
|
||||
return $indices;
|
||||
}
|
||||
$this->query("SELECT relname FROM pg_class WHERE NOT relname ~ 'pg_.*' AND relkind ='i' ORDER BY relname");
|
||||
while ($this->next_record())
|
||||
{
|
||||
$indices[] = array(
|
||||
'index_name' => $this->f(0),
|
||||
'tablespace_name' => $this->Database,
|
||||
'database' => $this->Database,
|
||||
);
|
||||
}
|
||||
return $indices;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user