Add traffic signals table and solution - #760
Conversation
likawther3li
commented
Aug 31, 2026
- traffic_signals table to store each signal's state
- check_and_update_signal_status to move the signal between RED, YELLOW and GREEN based on how much time passed
- start_signal_watch to start a scheduler job for the signal
- stop_signal_watch to stop one signal without affecting the others
- a trigger that starts the signal automatically when a new row is inserted
|
Here are the code review comments for the pull request titled "Add traffic signals table and solution": Code Review Comments
These suggestions aim to improve the code clarity and maintainability, while ensuring consistent formatting and logical correctness throughout the changes made in this pull request. |
…nly calls CREATE_JOB if the job doesn't already exist. Tested by calling it twice for the same signal, no error now
0ce0e6b
Code Review Comments
These comments aim to enhance clarity, maintainability, and functional correctness in this pull request. |
| -----read the signal----- | ||
| CREATE OR REPLACE PROCEDURE check_and_update_signal_status (p_signal_id IN NUMBER) | ||
| AS | ||
| v_state traffic_signals.signal_state%TYPE; |
There was a problem hiding this comment.
can't we just mention varchar2 as type instead of signal_state%TYPE ?
|
Here are the code review comments based on the provided pull request: Code Review Comments
These comments aim to enhance code quality and maintainability while ensuring consistent formatting and logical correctness in the changes made in this pull request. |
|
Here are the code review comments based on the provided pull request titled "Add traffic signals table and solution". Code Review Comments
These suggestions aim to enhance code quality and maintainability while ensuring consistent formatting and logical correctness in the changes made in this pull request. |



