banshee r2994 - in trunk/banshee: . src/Core/Hyena/Hyena.Data.Sqlite



Author: scottp
Date: Sat Jan 19 04:44:13 2008
New Revision: 2994
URL: http://svn.gnome.org/viewvc/banshee?rev=2994&view=rev

Log:
* src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs: Minor fix for
  last commit.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs

Modified: trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs
==============================================================================
--- trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs	(original)
+++ trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs	Sat Jan 19 04:44:13 2008
@@ -136,8 +136,8 @@
                     return -1;
                 }
                 int target = target_reader.GetInt32 (0);
-                using (IDataReader first_reader = connection.ExecuteReader (select_first_command)) {
-                    return first_reader.Read () ? first_reader.GetInt32 (0) - target : -1;
+                using (IDataReader first_reader = connection.ExecuteReader (select_first_command)) {;
+                    return first_reader.Read () ? target - first_reader.GetInt32 (0) : -1;
                 }
             }
         }



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