Lines 152-157 of /administrator/components/com_installer/models/database.php
improperly uses the set
clause with an insert
query.
// Add new row.
$query->clear()
->insert($db->quoteName('#__schemas'))
->set($db->quoteName('extension_id') . '= 700')
->set($db->quoteName('version_id') . '= ' . $db->quote($schema));
$db->setQuery($query);
And should instead be similar to the following:
$query->clear()
->insert($db->quoteName('#__schemas') . " (" . $db->quoteName('extension_id') . "," . $db->quoteName('version_id') . ") ")
->values('700, ' . $db->quote($schema));
$db->setQuery($query);
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-27 21:03:11 |
Closed_By | ⇒ | zero-24 |
Closing here as we have a PR: #6219 Thanks!
Category | ⇒ | SQL |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/6204