Hello!

I tried building the tpsever-cpp module from git but it failed on the
mysql module. The fix however is trivial, patch attached.

Note, this only solves build errors for me, I don't claim to have
fixed the module if there are other problems with it. I'm also
slightly confused by git (used to SVN only), so I hope I'm not handing
out old info here and that the patch is in a useful format and all
that.

Greets,
Vincent (Iwanowitch)
diff --git a/modules/persistence/mysql/mysqlpersistence.cpp b/modules/persistence/mysql/mysqlpersistence.cpp
index 74836e9..e016771 100644
--- a/modules/persistence/mysql/mysqlpersistence.cpp
+++ b/modules/persistence/mysql/mysqlpersistence.cpp
@@ -452,7 +452,7 @@ bool MysqlPersistence::saveObject(IGObject* ob){
     
     //TODO objectparameters
     
-    ob->setDirty(!rtv);
+    ob->setIsDirty(!rtv);
     unlock();
     return rtv;
 }
@@ -477,7 +477,7 @@ bool MysqlPersistence::updateObject(IGObject* ob){
     
     //TODO objectparameters
     
-    ob->setDirty(!rtv);
+    ob->setIsDirty(!rtv);
     unlock();
     return rtv;
 }
@@ -548,7 +548,7 @@ IGObject* MysqlPersistence::retrieveObject(uint32_t obid){
     //TODO objectparameters
     
     object->setModTime(strtoull(row[5], NULL, 10));
-    object->setDirty(false);
+    object->setIsDirty(false);
     
     mysql_free_result(obresult);
     return object;
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to