dumpBackup should instantiate correct database class for db type
[lhc/web/wiklou.git] / includes / Database.php
index d51553f..96dcc1b 100644 (file)
@@ -1967,6 +1967,11 @@ class Database {
                return $b;
        }
 
+       function set_timeout($timeout) {
+               $this->query( "SET net_read_timeout=$timeout" );
+               $this->query( "SET net_write_timeout=$timeout" );
+       }
+
        /**
         * Read and execute SQL commands from a file.
         * Returns true on success, error string on failure