alecpl
2008-10-07 af7a23d9d9fb983c4cacb7e4696eba904ecc537e
- better postgresql sequence names handling


2 files modified
12 ■■■■ changed files
program/include/main.inc 10 ●●●●● patch | view | raw | blame | history
program/include/rcube_mdb2.php 2 ●●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -74,17 +74,7 @@
  $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;
  }
program/include/rcube_mdb2.php
@@ -83,6 +83,8 @@
        '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))