~catch-drupal/+junk/pressflow-content-cache-variable

« back to all changes in this revision

Viewing changes to includes/database.pgsql.inc

  • Committer: David Strauss
  • Date: 2010-06-18 17:01:06 UTC
  • mfrom: (82.1.2 merge-drupal-6.17)
  • Revision ID: david@fourkitchens.com-20100618170106-eveqf9sepqonszf9
Drupal 6.17 (via testing branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: database.pgsql.inc,v 1.68.2.8 2010/02/01 16:32:10 goba Exp $
 
2
// $Id: database.pgsql.inc,v 1.68.2.9 2010/05/28 15:02:16 goba Exp $
3
3
 
4
4
/**
5
5
 * @file
637
637
  if ($spec['type'] == 'serial') {
638
638
    unset($spec['not null']);
639
639
  }
640
 
  if (!empty($spec['unsigned'])) {
641
 
    if ($spec['type'] == 'serial') {
642
 
      $sql .= " CHECK ($name >= 0)";
643
 
    }
644
 
    else {
645
 
      $sql .= '_unsigned';
646
 
    }
647
 
  }
648
640
 
649
641
  if (in_array($spec['type'], array('varchar', 'char', 'text')) && isset($spec['length'])) {
650
642
    $sql .= '('. $spec['length'] .')';
653
645
    $sql .= '('. $spec['precision'] .', '. $spec['scale'] .')';
654
646
  }
655
647
 
 
648
  if (!empty($spec['unsigned'])) {
 
649
    $sql .= " CHECK ($name >= 0)";
 
650
  }
 
651
 
656
652
  if (isset($spec['not null']) && $spec['not null']) {
657
653
    $sql .= ' NOT NULL';
658
654
  }