Commit 7eec9834 by Rebecca Arzamendia

solucion error merge

parent 8523ecd5
......@@ -11,7 +11,7 @@ public class DataBase {
Class.forName("org.postgresql.Driver");
con= DriverManager
.getConnection("jdbc:postgresql://localhost:5432/bootcamp_th",
"postgres", "2022roshka");
"postgres", "postgres");
if(con != null){
System.out.println("---> CONNECTED TO SERVER");
......
......@@ -146,8 +146,6 @@ public class BootcampDao {
// "\twhere a.fecha_inicio ilike ? and\n" +
// "\ta.fecha_fin ilike ? and b.nombre_lenguaje ilike ?";
try{
Connection con= DataBase.getConnection();
//PreparedStatement ps=con.prepareStatement("");
......
......@@ -58,7 +58,7 @@ public class ProfesorDao {
Profesor profesorObject = new Profesor();
try{
Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement("select a.id, a.nombre, a.apelli do, a.nro_cedula, a.correo from profesor a " +
PreparedStatement ps=con.prepareStatement("select a.id, a.nombre, a.apellido, a.nro_cedula, a.correo from profesor a " +
" where a.nombre ilike ? and a.apellido ilike ? ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment