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

Functional test framework's add_style() should not use sql_multi_insert()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.0-b3
    • 3.1.0-b2
    • Test Suite
    • None
    • SQLite2

      sql_multi_insert() is used by the functional test framework to add styles to the database. However, only one style is added at a time, so a multi-dimensional array is not passed in.
      https://github.com/phpbb/phpbb/blob/develop-ascraeus/tests/test_framework/phpbb_functional_test_case.php#L425

      The flip side of this question is, should the else clause of sql_multi_insert() allow for single dimension arrays to be passed in like it does for DBMSes that support multi-inserts?
      https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/phpbb/db/driver/driver.php#L514

            bantu Andreas Fischer [X] (Inactive)
            Noxwizard Patrick Webster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: