← Back to team overview

mahara-contributors team mailing list archive

[Bug 1893291] Re: Undefined property: stdClass::$constraint_name error for MySql 8

 

** Changed in: mahara/20.04
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1893291

Title:
  Undefined property: stdClass::$constraint_name error for MySql 8

Status in Mahara:
  Fix Released
Status in Mahara 19.04 series:
  Fix Released
Status in Mahara 19.10 series:
  Fix Committed
Status in Mahara 20.04 series:
  Fix Released
Status in Mahara 20.10 series:
  Fix Released

Bug description:
  The returned SQL result for checking find_key_name() for
  constraint_name has the column name in uppercase but we try to use it
  as $c->constraint_name (in lowercase)

  We need to check if property $c->CONSTRAINT_NAME exists and use that
  otherwise use $c->constraint_name

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1893291/+subscriptions


References