User tests: Successful: Unsuccessful:
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'))
->columns($db->quoteName('extension_id') . ',' . $db->quoteName('version_id'))
->values('700, ' . $db->quote($schema));
$db->setQuery($query);
Labels |
Added:
?
|
Category | ⇒ | SQL |
Title |
|
||||||
Rel_Number | ⇒ | 6204 | |||||
Relation Type | ⇒ | Pull Request for | |||||
Easy | No | ⇒ | Yes |
@Imcculley How should this be tested?
Install extensions as usual and validate data is properly written to the #__schemas
table in your database.
Oh, wait, excuse me. Just realized this is the fix function.
Umm... Not so easy to actually test as the only way I can think of doing so is clearing the row in the database, but may throw errors when you run the fix function because all the data already exists.
Any word as to when this PR might be merged?
A second test is needed. We will have a local PBF-Event this weekend and this patch is on my list.
Sounds great, thanks for the update!
Status | Pending | ⇒ | Ready to Commit |
RTC based on testing. Thanks!
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-13 10:00:44 |
Merged. Thanks!
Labels |
Removed:
?
|
@mbabker Thanks, I've made the edit.