mirror of
https://github.com/friendica/friendica
synced 2025-04-30 01:04:28 +02:00
Bugfix: We should only search in the current database for MyISAM tables
This commit is contained in:
parent
754de768f2
commit
edbdd0e34a
2 changed files with 13 additions and 1 deletions
|
@ -109,6 +109,17 @@ class dba {
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the selected database name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function database_name() {
|
||||
$r = $this->q("SELECT DATABASE() AS `db`");
|
||||
|
||||
return $r[0]['db'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the number of rows
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue