Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13947

function glossary_search doesn't work correctly in postgreSQL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 1.9
    • Fix Version/s: 1.8.5, 1.9.1
    • Component/s: Glossary
    • Labels:
      None
    • Environment:
      Linux, php 5.2, postgreSQL 8.2.6
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Calling function glossary_search with extended parameter set to 0 doesn't work correctly on postgreSQL.

      At line 1070 in glossary/lib.php the variable $definitionsearch is set to 0

      if ( !$extended ) {
      $definitionsearch = "0";
      }

      but postgreSQL doesn't interpreter 0 as false (http://www.postgresql.org/docs/8.2/interactive/datatype-boolean.html)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Apr/08