 	SELECT votacion_id INTO votacionId FROM `Votacion` WHERE name like votacionName;
 		
 	SELECT COUNT(*)+1 INTO votId1 FROM Votes;
-	INSERT INTO Votes values(votId1, voto, votacionId, latitud, longitud);
+	INSERT INTO Votes values(votId1, voto, votacionId, codPos);
     
 END
 //

  `vote_id` int(11) NOT NULL,
  `vote` text NOT NULL,
  `votation_id` int(11) NOT NULL,
  `latitud` double NOT NULL,
  `longitud` double NOT NULL,
  PRIMARY KEY (vote_id),
  FOREIGN KEY (votation_id) 
        REFERENCES Votacion(votacion_id)

CREATE PROCEDURE InsertarVoto
(
	IN votacionName VARCHAR(100), 
	IN voto VARCHAR(100),  
	IN codPos INT(6)
)
BEGIN
	DECLARE votacionId INT;
