Moodle

Wrong conversion from '0' (string) to '' under Oracle

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.7.4, 1.8.4, 1.9
  • Fix Version/s: 1.7.5, 1.8.5, 1.9.1
  • Component/s: Database SQL/XMLDB
  • Labels:
    None
  • Database:
    Oracle
  • Affected Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

It seems that the Oracle dmllib stuff, when processing data before being inserted (a.k.a "oracle_dirty_hack") converts '0' strings to ' ' (one space) strings.

And this is causing minor-major problems here and there (see, for example MDL-14025).

This is a wrong behaviour and those '0' strings MUST be completely unmodified. Enforce it.

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Fixed from 17_STABLE to HEAD. '0' strings are now properly sent to DB.

Show
Eloy Lafuente (stronk7) added a comment - Fixed from 17_STABLE to HEAD. '0' strings are now properly sent to DB.
Hide
Petr Škoda (skodak) added a comment -

reviewed, closing - thanks!

Show
Petr Škoda (skodak) added a comment - reviewed, closing - thanks!

People

Dates

  • Created:
    Updated:
    Resolved: