[hyena] [HyenaSqliteConnection] Add protected DbPath getter
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] [HyenaSqliteConnection] Add protected DbPath getter
- Date: Mon, 1 Nov 2010 23:09:12 +0000 (UTC)
commit cc2a241a93c05e7c2c34af87b0434944fa7ce27f
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Nov 1 18:08:57 2010 -0500
[HyenaSqliteConnection] Add protected DbPath getter
.../Hyena.Data.Sqlite/HyenaSqliteConnection.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs
index 64b0c70..eaba2d8 100644
--- a/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs
+++ b/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs
@@ -90,6 +90,8 @@ namespace Hyena.Data.Sqlite
private SqliteConnection connection;
private string dbpath;
+ protected string DbPath { get { return dbpath; } }
+
// These are 'parallel' queues; that is, when a value is pushed or popped to
// one, a value is pushed or popped to all three.
// The 1st contains the command object itself, and the 2nd and 3rd contain the
@@ -333,7 +335,7 @@ namespace Hyena.Data.Sqlite
foreach (string column_def in sql.Split (',')) {
string column_def_t = column_def.Trim ();
int ws_index = column_def_t.IndexOfAny (ws_chars);
- code (column_def_t.Substring (0, ws_index));
+ code (ws_index == -1 ? column_def_t : column_def_t.Substring (0, ws_index));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]