From abb0ad36bd887dbe8d6be4eb93a7d327f33ed5b4 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Tue, 2 Sep 2008 20:17:57 +0000
Subject: apparently I missed one of the old version routines that could be
removed. Removing that now.
---
OpenSim/Data/MySQL/MySQLRegionData.cs | 39 -----------------------------------
1 file changed, 39 deletions(-)
(limited to 'OpenSim/Data/MySQL/MySQLRegionData.cs')
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index 5c86570..903f022 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -254,45 +254,6 @@ namespace OpenSim.Data.MySQL
}
///
- /// Given a list of tables, return the version of the tables, as seen in the database
- ///
- /// The list of table
- /// The database connection handler
- public void GetTableVersion(Dictionary tableList, MySqlConnection dbcon)
- {
- lock (dbcon)
- {
- MySqlCommand tablesCmd =
- new MySqlCommand(
- "SELECT TABLE_NAME, TABLE_COMMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=?dbname",
- dbcon);
- tablesCmd.Parameters.AddWithValue("?dbname", dbcon.Database);
-
- CheckConnection();
- using (MySqlDataReader tables = tablesCmd.ExecuteReader())
- {
- while (tables.Read())
- {
- try
- {
- string tableName = (string)tables["TABLE_NAME"];
- string comment = (string)tables["TABLE_COMMENT"];
- if (tableList.ContainsKey(tableName))
- {
- tableList[tableName] = comment;
- }
- }
- catch (Exception e)
- {
- m_log.Error(e.ToString());
- }
- }
- tables.Close();
- }
- }
- }
-
- ///
/// Execute a SQL statement stored in a resource, as a string
///
/// the ressource name
--
cgit v1.1