[chronojump] Testing status on SQL open and insert. TODO: remove this
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Testing status on SQL open and insert. TODO: remove this
- Date: Wed, 11 Jan 2017 16:59:10 +0000 (UTC)
commit a24d414c1371000f49d38032a31713e6a549ce90
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jan 11 17:58:39 2017 +0100
Testing status on SQL open and insert. TODO: remove this
src/sqlite/jumpRj.cs | 2 ++
src/sqlite/main.cs | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/sqlite/jumpRj.cs b/src/sqlite/jumpRj.cs
index 0ba27a1..5bc40ea 100644
--- a/src/sqlite/jumpRj.cs
+++ b/src/sqlite/jumpRj.cs
@@ -77,6 +77,8 @@ class SqliteJumpRj : SqliteJump
Util.ConvertToPoint(tvString) + "\", \"" + Util.ConvertToPoint(tcString) +
"\", " +
jumps + ", " + Util.ConvertToPoint(time) + ", \"" + limited + "\", \"" +
angleString + "\", " + simulated +")" ;
LogB.SQL(dbcmd.CommandText.ToString());
+
+ LogB.Information("SQL going to insert RJ, status: " + dbcon.State.ToString());
dbcmd.ExecuteNonQuery();
//int myLast = dbcon.LastInsertRowId;
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index f7eed9c..18fb138 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -141,6 +141,7 @@ class Sqlite
//because lots of similar transactions have to be done
public static void Open()
{
+ LogB.Information("SQL going to open, status: " + dbcon.State.ToString());
if(dbcon.State == System.Data.ConnectionState.Closed)
{
LogB.SQLon();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]