Moodle

M5: Add some more tests about CLOBs and BLOBs

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Database SQL/XMLDB
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    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

Activity

Hide
Nicolas Connault added a comment -

Tests added

Show
Nicolas Connault added a comment - Tests added
Hide
Eloy Lafuente (stronk7) added a comment -

Great! Thanks!

Show
Eloy Lafuente (stronk7) added a comment - Great! Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: