Diff of /trunk/adminer/drivers/mysql.inc.php [r1520] .. [r1521]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/adminer/drivers/mysql.inc.php
+++ b/trunk/adminer/drivers/mysql.inc.php
@@ -755,6 +755,28 @@
 		return $connection->query("EXPLAIN $query");
 	}
 	
+	/** Get existing schemas
+	* @return array
+	*/
+	function schemas() {
+		return array();
+	}
+	
+	/** Get current schema
+	* @return string
+	*/
+	function get_schema() {
+		return "";
+	}
+	
+	/** Set current schema
+	* @param string
+	* @return bool
+	*/
+	function set_schema($schema) {
+		return true;
+	}
+	
 	/** Get SQL command to create table
 	* @param string
 	* @return string
@@ -810,7 +832,7 @@
 	*/
 	function support($feature) {
 		global $connection;
-		return ($connection->server_info >= 5.1 || ($connection->server_info >= 5 && !ereg("event|partitioning")) || !ereg("view|routine|trigger"));
+		return !ereg("scheme" . ($connection->server_info < 5.1 ? "|event|partitioning" . ($connection->server_info < 5 ? "|view|routine|trigger" : "") : ""), $feature);
 	}
 
 	$driver = "sql"; ///< @var string JUSH identifier

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks