banshee r3304 - in trunk/banshee: . src/Libraries/Hyena/Hyena.Data.Sqlite



Author: scottp
Date: Sat Feb 23 03:24:38 2008
New Revision: 3304
URL: http://svn.gnome.org/viewvc/banshee?rev=3304&view=rev

Log:
* src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs,
* src/Libraries/Hyena/Hyena.Data.Sqlite/HyenaSqliteConnection.cs:
  HyenaSqliteConnection.GetSchema now returns an IDictionary<string,
  string> rather than a Dictionary<string, string>.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/HyenaSqliteConnection.cs
   trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs

Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/HyenaSqliteConnection.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/HyenaSqliteConnection.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/HyenaSqliteConnection.cs	Sat Feb 23 03:24:38 2008
@@ -147,7 +147,7 @@
         }
         
         private static readonly char [] ws_chars = new char [] { ' ', '\t', '\n', '\r' };
-        public Dictionary<string, string> GetSchema (string table_name)
+        public IDictionary<string, string> GetSchema (string table_name)
         {
             Dictionary<string, string> schema = new Dictionary<string,string> ();
             SchemaClosure (table_name, delegate (string column) {

Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs	Sat Feb 23 03:24:38 2008
@@ -157,7 +157,7 @@
         private void CheckTable ()
         {
             //Console.WriteLine ("In {0} checking for table {1}", this, TableName);
-            Dictionary<string, string> schema = connection.GetSchema (TableName);
+            IDictionary<string, string> schema = connection.GetSchema (TableName);
             if (schema.Count > 0) {
                 foreach (DatabaseColumn column in columns) {
                     if (!schema.ContainsKey (column.Name)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]