?
avatar serkamikadze
serkamikadze
12 Jun 2015

Steps to reproduce the issue

// setQuery() not replace #__ to table prefix in this query
$query="SHOW TABLE STATUS LIKE '#__table'";

Expected result

$query=="SHOW TABLE STATUS LIKE 'table_prefix_table'";

Actual result

$query=="SHOW TABLE STATUS LIKE '#__table'";

Additional comments

I use $db->getPrefix() and query like this
$query="SHOW TABLE STATUS LIKE '".$db->getPrefix()."table'";

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
4.00

avatar serkamikadze serkamikadze - open - 12 Jun 2015
avatar serkamikadze serkamikadze - change - 12 Jun 2015
Build 3.4 staging
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2015
Labels Added: ?
avatar mbabker
mbabker - comment - 12 Jun 2015

Looking through our unit tests, it looks like this is intended behavior. In this use case, the table name is a quoted search value and it looks like replacePrefix was designed to not replace the prefix in this case. So your workaround would be correct here.

avatar mbabker mbabker - reference | ed5bab6 - 12 Jun 15
avatar Bakual
Bakual - comment - 12 Jun 2015

Closing as expected behavior based on @mbabker comment

avatar Bakual Bakual - change - 12 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-12 13:21:41
Closed_By Bakual
avatar Bakual Bakual - close - 12 Jun 2015
avatar Bakual Bakual - close - 12 Jun 2015
avatar Bakual Bakual - change - 14 Jun 2015
Milestone Added:

Add a Comment

Login with GitHub to post a comment