Changeset e905db1 in github
- Timestamp:
- Oct 14, 2008 8:49:44 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 32eb29f
- Parents:
- 871ca9a
- Files:
-
- 2 edited
-
bin/dumpschema.php (modified) (4 diffs)
-
program/include/rcube_mdb2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bin/dumpschema.php
r06c3d10 re905db1 1 1 <?php 2 2 /* 3 #!/usr/bin/php 3 4 4 5 +-----------------------------------------------------------------------+ … … 46 47 'force_defaults' => false, 47 48 'portability' => false, 48 'disable_smart_seqname' => true,49 'seqname_format' => '%s'50 49 ); 51 50 52 $schema =& MDB2_Schema::factory($config->get('db_dsnw'), $options); 51 $dsnw = $config->get('db_dsnw'); 52 $dsn_array = MDB2::parseDSN($dsnw); 53 54 // set options for postgres databases 55 if ($dsn_array['phptype'] == 'pgsql') { 56 $options['disable_smart_seqname'] = true; 57 $options['seqname_format'] = '%s'; 58 } 59 60 $schema =& MDB2_Schema::factory($dsnw, $options); 53 61 $schema->db->supported['transactions'] = false; 54 62 55 63 56 64 // send as text/xml when opened in browser 57 65 if ($_SERVER['REMOTE_ADDR']) … … 69 77 70 78 $definition = $schema->getDefinitionFromDatabase(); 79 $definition['charset'] = 'utf8'; 80 71 81 if (PEAR::isError($definition)) { 72 82 $error = $definition->getMessage() . ' ' . $definition->getUserInfo(); … … 82 92 $schema->disconnect(); 83 93 84 //if ($error)85 //fputs(STDERR, $error);94 if ($error && !$_SERVER['REMOTE_ADDR']) 95 fputs(STDERR, $error); 86 96 87 97 ?> -
program/include/rcube_mdb2.php
r9f23f05 re905db1 87 87 88 88 if ($this->db_provider == 'pgsql') { 89 $db_options['disable_smart_seqname'] = true;90 $db_options['seqname_format'] = '%s';91 }89 $db_options['disable_smart_seqname'] = true; 90 $db_options['seqname_format'] = '%s'; 91 } 92 92 93 93 $dbh = MDB2::connect($dsn, $db_options);
Note: See TracChangeset
for help on using the changeset viewer.
