diff --git a/src/main/java/org/example/hexlet/repository/CarRepository.java b/src/main/java/org/example/hexlet/repository/CarRepository.java index 2a6a4aa..5e24926 100644 --- a/src/main/java/org/example/hexlet/repository/CarRepository.java +++ b/src/main/java/org/example/hexlet/repository/CarRepository.java @@ -10,7 +10,7 @@ public class CarRepository extends BaseRepository { public static void save(Car car) throws SQLException { - String sql = "INSERT INTO cars (make, model) VALUES (?, ?)"; + var sql = "INSERT INTO cars (make, model) VALUES (?, ?)"; try (var conn = dataSource.getConnection(); var preparedStatement = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS)) { preparedStatement.setString(1, car.getMake());