[Fusionforge-commits] r7650 - trunk/gforge/common/pm

Roland Mas lolando at libremir.placard.fr.eu.org
Thu May 14 20:25:21 CEST 2009


Author: lolando
Date: 2009-05-14 20:25:21 +0200 (Thu, 14 May 2009)
New Revision: 7650

Modified:
   trunk/gforge/common/pm/ProjectTask.class.php
Log:
db_query ?\226?\134?\146 db_query_mysql in MySQL-specific code path

Modified: trunk/gforge/common/pm/ProjectTask.class.php
===================================================================
--- trunk/gforge/common/pm/ProjectTask.class.php	2009-05-14 18:25:14 UTC (rev 7649)
+++ trunk/gforge/common/pm/ProjectTask.class.php	2009-05-14 18:25:21 UTC (rev 7650)
@@ -170,14 +170,14 @@
 				VALUES ('".$this->ProjectGroup->getID()."','".user_getid()."','".htmlspecialchars( $summary )."',
 				'". htmlspecialchars($details) ."',	'$start_date','$end_date','1','$category_id','$priority','$percent_complete','$hours','$duration','$parent_id')";
 			
-			$result = db_query( $sql );
+			$result = db_query_mysql( $sql );
 			if (!$result || db_affected_rows($result) < 1) {
 				$this->setError( 'ProjectTask::create() Posting Failed '.db_error().$sql );
 				db_rollback();
 				return false;
 			}
 
-			$result = db_query( "SELECT last_insert_id() AS id" );
+			$result = db_query_mysql( "SELECT last_insert_id() AS id" );
 			if (!$result) {
 				$this->setError( 'ProjectTask::create() Get Created ID Failed '.db_error().$sql );
 				db_rollback();




More information about the Fusionforge-commits mailing list