? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
20 Jun 2017

the getTableKeys() retrieve indexes information about one table and not from a list of table names

https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/driver/mysqli.php#L477
$this->setQuery('SHOW KEYS FROM ' . $this->quoteName($table));

Summary of Changes

fixed wrong doc block for getTableKeys()

avatar alikon alikon - open - 20 Jun 2017
avatar alikon alikon - change - 20 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2017
Category Libraries
avatar brianteeman
brianteeman - comment - 22 Jun 2017

This is changing more than just the docblock?

avatar alikon
alikon - comment - 22 Jun 2017

should not, otherwise the unit test should complain
https://github.com/joomla/joomla-cms/blob/16d5a298cfecc38484c42993069401fab088d789/tests/unit/suites/database/driver/mysqli/JDatabaseDriverMysqliTest.php#L352

public function testGetTableKeys()
	{
		$this->assertThat(
			self::$driver->getTableKeys('#__dbtest'),
			$this->isType('array'),
			'The list of keys for the table is returned in an array.'
		);
	}
avatar brianteeman
brianteeman - comment - 22 Jun 2017

line 1285 is changing the code from tables to table

avatar alikon
alikon - comment - 22 Jun 2017

i've just put a more precise parameter name, no side-effect on invoking that method

avatar csthomas
csthomas - comment - 28 Jun 2017

I have tested this item successfully on 7e54b79

Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16787.

avatar csthomas csthomas - test_item - 28 Jun 2017 - Tested successfully
avatar roland-d roland-d - test_item - 9 Jul 2017 - Tested successfully
avatar roland-d
roland-d - comment - 9 Jul 2017

I have tested this item successfully on 7e54b79

The docblock now matches the code.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16787.

avatar zero-24 zero-24 - change - 9 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-09 21:32:13
Closed_By zero-24
avatar zero-24 zero-24 - close - 9 Jul 2017
avatar zero-24 zero-24 - merge - 9 Jul 2017
avatar zero-24
zero-24 - comment - 9 Jul 2017

Merged thanks ?

Add a Comment

Login with GitHub to post a comment