// setQuery() not replace #__ to table prefix in this query
$query="SHOW TABLE STATUS LIKE '#__table'";
$query=="SHOW TABLE STATUS LIKE 'table_prefix_table'";
$query=="SHOW TABLE STATUS LIKE '#__table'";
I use $db->getPrefix() and query like this
$query="SHOW TABLE STATUS LIKE '".$db->getPrefix()."table'";
Build | 3.4 | ⇒ | staging |
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-06-12 13:21:41 |
Closed_By | ⇒ | Bakual |
Milestone |
Added: |
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.