mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
PostgreSQL 8.1 fix
This commit is contained in:
parent
3660b40851
commit
e6998c2ecf
@ -553,7 +553,7 @@
|
|||||||
// identify the sequence name, ADOdb uses a different name or it might be renamed
|
// identify the sequence name, ADOdb uses a different name or it might be renamed
|
||||||
$columns = $this->dict->MetaColumns($sTableName);
|
$columns = $this->dict->MetaColumns($sTableName);
|
||||||
$seq_name = 'seq_'.$sTableName;
|
$seq_name = 'seq_'.$sTableName;
|
||||||
if (preg_match("/nextval\('([^']+)'::text\)/",$columns[strtoupper($sColumnName)]->default_value,$matches))
|
if (preg_match("/nextval\('([^']+)'::(text|regclass)\)/",$columns[strtoupper($sColumnName)]->default_value,$matches))
|
||||||
{
|
{
|
||||||
$seq_name = $matches[1];
|
$seq_name = $matches[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user