Sqlite Update query in iPhone
===

//Calling from Class A   

 

        DatabaseClass *databaseObj = [[DatabaseInfoiPhone alloc] init];
    databaseObj.AppID =@"50";
    databaseObj.Version =@"1";	
    //Calling 
    [databaseObj performUpdateOnRow];


//In Database Class 


  

      static sqlite3_stmt *UpdateStmt = nil;


    -(void)performUpdateOnRow : {
    		
        if (UpdateStmt == nil){
            const char *sql = "UPDATE InAppDBStatus SET AppID=? WHERE Version=?";
            if( sqlite3_prepare_v2(database, sql, -1, &UpdateStmt, NULL) != SQLITE_OK ){
    			
            }
        }
       
    	sqlite3_bind_text(UpdateStmt, 1, AppID, -1, SQLITE_TRANSIENT);
    	
    	sqlite3_bind_int(UpdateStmt, 2, Version);
    	
    	int success = sqlite3_step(UpdateStmt);
    	
    	sqlite3_reset(UpdateStmt);
    	
    }


Above code is not Updating my database. please any buddy can help me about that.

	 

