- better postgresql sequence names handling

release-0.6
alecpl 16 years ago
parent 06c3d10556
commit af7a23d9d9

@ -74,17 +74,7 @@ function get_sequence_name($sequence)
$opt = rcmail::get_instance()->config->get($config_key);
if (!empty($opt))
{
$db = &rcmail::get_instance()->db;
if ($db->db_provider=='pgsql')
{
$db->db_handle->setOption('disable_smart_seqname', true);
$db->db_handle->setOption('seqname_format', '%s');
}
return $opt;
}
return $sequence;
}

@ -83,6 +83,8 @@ class rcube_mdb2
'emulate_prepared' => $this->debug_mode,
'debug' => $this->debug_mode,
'debug_handler' => 'mdb2_debug_handler',
'disable_smart_seqname' => true, // for postgresql
'seqname_format' => '%s', // for postgresql
'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL));
if (MDB2::isError($dbh))

Loading…
Cancel
Save