Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ProjectRepository.addProjectLeaderToProject SQL error #23

Open
libanbn opened this issue Dec 3, 2019 · 1 comment
Open

Fix ProjectRepository.addProjectLeaderToProject SQL error #23

libanbn opened this issue Dec 3, 2019 · 1 comment
Labels
bug Something isn't working Critical

Comments

@libanbn
Copy link
Contributor

libanbn commented Dec 3, 2019

{
    "timestamp": "2019-12-03T21:54:35.351+0000",
    "status": 500,
    "error": "Internal Server Error",
    "message": "PreparedStatementCallback; SQL [INSERT INTO project_project_leader(project_id, leader_id) \nVALUES (?,        (SELECT pl.leader_id            FROM project_leader pl            INNER JOIN employee_project_leader epl ON epl.employee_id = pl.leader_id            INNER JOIN employees e ON e.employee_id = epl.employee_id            WHERE e.employee_id = ?        ))]; Column 'project_id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'project_id' cannot be null",
    "path": "/addNewProject"
}
@libanbn libanbn added bug Something isn't working Critical labels Dec 3, 2019
@libanbn
Copy link
Contributor Author

libanbn commented Dec 4, 2019

Uncomment line defined in 6dbdba4 when done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Critical
Projects
None yet
Development

No branches or pull requests

1 participant