Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2691

Test Suite: Drop other connections before dropping database PostgreSQL

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      Windows 7 Professional 64 bits
      PHP 5.4.11 (cli) (built: Jan 16 2013 20:26:26)
      Doctrine dev-master from 18-9-2013
      PostgreSQL 9.2.4 build 1600, 64-bits

      Description

      The test suite is trying to run the command

      DROP DATABASE doctrine_tests
      

      This fails, together with lots of tests when another user is connected (for example through the pgAdmin program). It would be nice if the test suite had an option to drop existing connections, which can be done with the following command:

      SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'doctrine_tests';
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Flip
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: