[hyena] Sqlite: Fix warning message to not use a 0-based variable
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Sqlite: Fix warning message to not use a 0-based variable
- Date: Sun, 16 Feb 2014 16:48:59 +0000 (UTC)
commit ece2aa9168fb49c1d349b99705fdf86d9cc137f7
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Sun Feb 16 17:48:51 2014 +0100
Sqlite: Fix warning message to not use a 0-based variable
'row' is 0-based, therefore the warning message has to
use 'row + 1'.
.../Hyena.Data.Sqlite/ArrayDataReader.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/ArrayDataReader.cs
b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/ArrayDataReader.cs
index 8ff23ce..1975e66 100644
--- a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/ArrayDataReader.cs
+++ b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/ArrayDataReader.cs
@@ -69,7 +69,8 @@ namespace Hyena.Data.Sqlite
public void Dispose ()
{
if (rows > 1 && max_got_row < (rows - 1) && Log.Debugging) {
- Log.WarningFormat ("Disposing ArrayDataReader that has {0} rows but we only read {1} of
them\n{2}", rows, row, sql);
+ Log.WarningFormat ("Disposing ArrayDataReader that has {0} rows but we only read {1} of
them\n{2}",
+ rows, row + 1, sql);
}
row = -1;
max_got_row = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]