Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14679 META: DB layer 2.0
  3. MDL-14786

pgsql does not support bound queries in field default values

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Database SQL/XMLDB
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      nice one! pg does not support $1 when defining field defaults
      solution:

      • do not allow [$:?] in field defaults (and enums maybe too) - there is only one in timezone table "00:00"
      • report and wait
      • emulate bound query params - grrrr

      Attachments

        Activity

          People

            skodak Petr Skoda
            skodak Petr Skoda
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10