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

function glossary_search doesn't work correctly in postgreSQL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.4, 1.9
    • 1.8.5, 1.9.1
    • Glossary
    • None
    • Linux, php 5.2, postgreSQL 8.2.6
    • PostgreSQL
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • 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

            stronk7 Eloy Lafuente (stronk7)
            alberico anobile Alberico Anobile
            Petr Skoda Petr Skoda
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Apr/08