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

M5: Add some more tests about CLOBs and BLOBs

    XMLWordPrintable

Details

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

    Description

      I think it would be interesting to add some extra tests covering these situations:

      • Insert one CLOB in one record.
      • Insert multiple CLOBS in one record.
      • Update one CLOB in one record.
      • Insert multiple CLOBS in one record
      • Set one CLOB in one record
      • Obviously, fetch those CLOBS (get_record, get_recordset, get_field, to check they are ok).

      Notes:

      CLOBS are TEXT columns in Moodle slang.
      BLOBS are BINARY columns in Moodle slang.
      Make test contents to be > 4000 bytes, please (that will help Oracle tests).
      Use complex data for tests, with UTF-8 strings for CLOBs and random binary contents for BLOBs

      Ciao

      Attachments

        Activity

          People

            nicolasconnault Nicolas Connault
            stronk7 Eloy Lafuente (stronk7)
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10