[chronojump/video-capture: 1/7] WIP: Fix compilation issu with newer version of Mono.Data.Sqlite
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/video-capture: 1/7] WIP: Fix compilation issu with newer version of Mono.Data.Sqlite
- Date: Thu, 16 Dec 2010 00:30:13 +0000 (UTC)
commit bd35a1e6d0ea337198af3190f77838632a062c95
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Dec 15 22:28:25 2010 +0100
WIP: Fix compilation issu with newer version of Mono.Data.Sqlite
chronojump_server/bin/chronojumpServer.dll | Bin 282624 -> 283136 bytes
src/oldCodeNeedToDBConvert/sqlite/person.cs | 2 +-
src/oldCodeNeedToDBConvert/sqlite/personSession.cs | 2 +-
src/oldCodeNeedToDBConvert/sqlite/session.cs | 2 +-
src/sqlite/country.cs | 2 +-
src/sqlite/event.cs | 2 +-
src/sqlite/jump.cs | 2 +-
src/sqlite/jumpRj.cs | 2 +-
src/sqlite/multiChronopic.cs | 2 +-
src/sqlite/person.cs | 2 +-
src/sqlite/personSession.cs | 2 +-
src/sqlite/pulse.cs | 2 +-
src/sqlite/reactionTime.cs | 2 +-
src/sqlite/run.cs | 2 +-
src/sqlite/runInterval.cs | 2 +-
src/sqlite/runType.cs | 4 ++--
src/sqlite/server.cs | 4 ++--
src/sqlite/session.cs | 4 ++--
src/sqlite/speciallity.cs | 2 +-
src/sqlite/sport.cs | 2 +-
20 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/chronojump_server/bin/chronojumpServer.dll b/chronojump_server/bin/chronojumpServer.dll
index 0464911..3752208 100755
Binary files a/chronojump_server/bin/chronojumpServer.dll and b/chronojump_server/bin/chronojumpServer.dll differ
diff --git a/src/oldCodeNeedToDBConvert/sqlite/person.cs b/src/oldCodeNeedToDBConvert/sqlite/person.cs
index f732ec5..495aa34 100644
--- a/src/oldCodeNeedToDBConvert/sqlite/person.cs
+++ b/src/oldCodeNeedToDBConvert/sqlite/person.cs
@@ -75,7 +75,7 @@ class SqlitePersonOld : Sqlite
dbcmd.CommandText = myString;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/oldCodeNeedToDBConvert/sqlite/personSession.cs b/src/oldCodeNeedToDBConvert/sqlite/personSession.cs
index 2493542..71c84cb 100644
--- a/src/oldCodeNeedToDBConvert/sqlite/personSession.cs
+++ b/src/oldCodeNeedToDBConvert/sqlite/personSession.cs
@@ -56,7 +56,7 @@ class SqlitePersonSessionOld : Sqlite
"(uniqueID, personID, sessionID, weight) VALUES ("
+ uniqueID + ", " + personID + ", " + sessionID + ", " + Util.ConvertToPoint(weight) + ")" ;
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(!dbconOpened)
dbcon.Close();
return myReturn;
diff --git a/src/oldCodeNeedToDBConvert/sqlite/session.cs b/src/oldCodeNeedToDBConvert/sqlite/session.cs
index 2c2ab42..519146b 100644
--- a/src/oldCodeNeedToDBConvert/sqlite/session.cs
+++ b/src/oldCodeNeedToDBConvert/sqlite/session.cs
@@ -101,7 +101,7 @@ class SqliteSessionOld : Sqlite
personsSportID + ", " + personsSpeciallityID + ", " +
personsPractice + ", '" + comments + "')" ;
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/country.cs b/src/sqlite/country.cs
index b417443..c699bad 100644
--- a/src/sqlite/country.cs
+++ b/src/sqlite/country.cs
@@ -74,7 +74,7 @@ class SqliteCountry : Sqlite
dbcmd.CommandText = myString;
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/event.cs b/src/sqlite/event.cs
index ad37833..042e943 100644
--- a/src/sqlite/event.cs
+++ b/src/sqlite/event.cs
@@ -57,7 +57,7 @@ class SqliteEvent : Sqlite
" VALUES (NULL, '" + tableName + "', '" + eventName + "', '" + graphFileName + "', '', '')" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened) {
dbcon.Close();
}
diff --git a/src/sqlite/jump.cs b/src/sqlite/jump.cs
index 8e67b24..4eb24cb 100644
--- a/src/sqlite/jump.cs
+++ b/src/sqlite/jump.cs
@@ -81,7 +81,7 @@ class SqliteJump : Sqlite
+ Util.ConvertToPoint(angle) + ", " + simulated +")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/jumpRj.cs b/src/sqlite/jumpRj.cs
index 7707c04..2236ad2 100644
--- a/src/sqlite/jumpRj.cs
+++ b/src/sqlite/jumpRj.cs
@@ -78,7 +78,7 @@ class SqliteJumpRj : SqliteJump
jumps + ", " + Util.ConvertToPoint(time) + ", '" + limited + "', '" + angleString + "', " + simulated +")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/multiChronopic.cs b/src/sqlite/multiChronopic.cs
index cd0698b..8b16902 100644
--- a/src/sqlite/multiChronopic.cs
+++ b/src/sqlite/multiChronopic.cs
@@ -99,7 +99,7 @@ class SqliteMultiChronopic : Sqlite
description + "', " + simulated + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/person.cs b/src/sqlite/person.cs
index 1721320..14cd20d 100644
--- a/src/sqlite/person.cs
+++ b/src/sqlite/person.cs
@@ -69,7 +69,7 @@ class SqlitePerson : Sqlite
dbcmd.CommandText = myString;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/personSession.cs b/src/sqlite/personSession.cs
index 3b600ec..650897d 100644
--- a/src/sqlite/personSession.cs
+++ b/src/sqlite/personSession.cs
@@ -71,7 +71,7 @@ class SqlitePersonSession : Sqlite
comments + "', '', '')";
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(!dbconOpened)
dbcon.Close();
return myReturn;
diff --git a/src/sqlite/pulse.cs b/src/sqlite/pulse.cs
index dbf5a84..db76a65 100644
--- a/src/sqlite/pulse.cs
+++ b/src/sqlite/pulse.cs
@@ -72,7 +72,7 @@ class SqlitePulse : Sqlite
+ timeString + "', '" + description + "', " + simulated + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/reactionTime.cs b/src/sqlite/reactionTime.cs
index 2592f26..1ba3ce4 100644
--- a/src/sqlite/reactionTime.cs
+++ b/src/sqlite/reactionTime.cs
@@ -70,7 +70,7 @@ class SqliteReactionTime : Sqlite
+ Util.ConvertToPoint(time) + ", '" + description + "', " + simulated + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/run.cs b/src/sqlite/run.cs
index 0dc1897..dab2095 100644
--- a/src/sqlite/run.cs
+++ b/src/sqlite/run.cs
@@ -72,7 +72,7 @@ class SqliteRun : Sqlite
description + "', " + simulated + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/runInterval.cs b/src/sqlite/runInterval.cs
index 354884f..e3ee0d6 100644
--- a/src/sqlite/runInterval.cs
+++ b/src/sqlite/runInterval.cs
@@ -73,7 +73,7 @@ class SqliteRunInterval : SqliteRun
description + "', '" + limited + "', " + simulated + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/runType.cs b/src/sqlite/runType.cs
index d32c8bc..57aa8d1 100644
--- a/src/sqlite/runType.cs
+++ b/src/sqlite/runType.cs
@@ -113,7 +113,7 @@ class SqliteRunType : Sqlite
t.Name + "', " + Util.ConvertToPoint(t.Distance) + ", '" + t.Description + "')" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened) {
dbcon.Close();
}
@@ -351,7 +351,7 @@ class SqliteRunIntervalType : SqliteRunType
Util.BoolToInt(t.Unlimited) + ", '" + t.Description + "', '" + t.DistancesString + "')" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myLast = dbcon.LastInsertRowId;
+ int myLast = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened) {
dbcon.Close();
}
diff --git a/src/sqlite/server.cs b/src/sqlite/server.cs
index d2276dc..4d692bc 100644
--- a/src/sqlite/server.cs
+++ b/src/sqlite/server.cs
@@ -82,7 +82,7 @@ class SqliteServer : Sqlite
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
@@ -114,7 +114,7 @@ class SqliteServer : Sqlite
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/session.cs b/src/sqlite/session.cs
index fabf51f..b076a81 100644
--- a/src/sqlite/session.cs
+++ b/src/sqlite/session.cs
@@ -69,7 +69,7 @@ class SqliteSession : Sqlite
serverUniqueID + ")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
@@ -616,7 +616,7 @@ class SqliteServerSession : SqliteSession
")" ;
Log.WriteLine(dbcmd.CommandText.ToString());
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/speciallity.cs b/src/sqlite/speciallity.cs
index d2c1199..0bb7957 100644
--- a/src/sqlite/speciallity.cs
+++ b/src/sqlite/speciallity.cs
@@ -65,7 +65,7 @@ class SqliteSpeciallity : Sqlite
dbcmd.CommandText = myString;
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
diff --git a/src/sqlite/sport.cs b/src/sqlite/sport.cs
index cae0a47..462bbe8 100644
--- a/src/sqlite/sport.cs
+++ b/src/sqlite/sport.cs
@@ -70,7 +70,7 @@ class SqliteSport : Sqlite
dbcmd.CommandText = myString;
dbcmd.ExecuteNonQuery();
- int myReturn = dbcon.LastInsertRowId;
+ int myReturn = -10000; //dbcon.LastInsertRowId;
if(! dbconOpened)
dbcon.Close();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]