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



Author: scottp
Date: Sat Jan 19 20:29:42 2008
New Revision: 2997
URL: http://svn.gnome.org/viewvc/banshee?rev=2997&view=rev

Log:
* src/Core/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs: Oops.

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 20:29:42 2008
@@ -136,7 +136,9 @@
             }
             select_single_command.ApplyValues (item_id);
             using (IDataReader target_reader = connection.ExecuteReader (select_single_command)) {
-                target_reader.Read ();
+                if (!target_reader.Read ()) {
+                    return -1;
+                }
                 if (first_order_id == -1) {
                     using (IDataReader reader = connection.ExecuteReader (select_first_command)) {
                         reader.Read ();



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