]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Bugfix: We should only search in the current database for MyISAM tables
[friendica.git] / include / dba.php
index 082a54bd496694875cb7756974f049c2f065a179..16d2dc54d9cc1a362028699c974f41a8299174fb 100644 (file)
@@ -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
         *