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

insert_record_raw() $bulk parameter not implemented.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.5.4
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      I'm using Postgresql. The insert_record_raw() function has a $bulk parameter.  In  the code "@param bool $bulk true means repeated inserts expected".  But in /lib/dml/pgsql_native_moodle_database.php the $bulk parameter is never used in the function at all.  It seems like no bulk insert logic was ever added to pgsql's insert_record_raw().  My issue is I can't use insert_records() because I need to define my own id field values. 

      Were there ever overlooked plans to make an "insert_record*s*_raw() " instead of a $bulk parameter on insert_record_raw()?

      I'm not sure if this is a bug or an incomplete feature that got scrapped.

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: