Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9858

"Column contains null values" error in PostgreSQL 7.*

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • 3.0.12-RC1
    • 3.0.7-PL1
    • Installation system
    • None
    • PHP 5.2.0, PostgreSQL 7.4.17

      This problem have been noticed many times.

      PostgreSQL 7.* doesn't allow "SET NOT NULL" to column that already eixists.

      Many MODs use the file /include/db/db_tools.php which contains the code below

      db_tools.php

          if ($column_data['null'] == 'NOT NULL')
          {
          $statements[] = 'ALTER TABLE ' . $table_name . ' ALTER COLUMN ' . $column_name . ' SET NOT NULL';
          }
      

      We can install some MODs only together with the core system. Or by commenting this strings.

            Oleg Oleg [X] (Inactive)
            dikw005 dikw005
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: