Skip to content

Commit

Permalink
[cuebot] Convert null value from job.str_os to empty string in SQL (#…
Browse files Browse the repository at this point in the history
…1600)

**Link the Issue(s) this Pull Request is related to.**
#1591  

**Summarize your change.**
This is a different take on the MR #1594 which only changes the SQL
queries instead of the Java code.
  • Loading branch information
lithorus authored Nov 28, 2024
1 parent 4023c4e commit 471bc0f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private static final String replaceQueryForFifo(String query) {
"str_user, " +
"int_uid, " +
"str_log_dir, " +
"str_os, " +
"COALESCE(str_os, '') AS str_os, " +
"frame_name, " +
"frame_state, " +
"pk_frame, " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public DispatchFrame mapRow(ResultSet rs, int rowNum) throws SQLException {
"job.str_user,"+
"job.int_uid,"+
"job.str_log_dir,"+
"job.str_os,"+
"COALESCE(str_os, '') AS str_os, " +
"frame.str_name AS frame_name, "+
"frame.str_state AS frame_state, "+
"frame.pk_frame, "+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public CachedJobWhiteboardMapper(NestedJobWhiteboardMapper result) {
"job.b_paused, " +
"job.b_autoeat, " +
"job.b_comment, " +
"job.str_os, " +
"COALESCE(str_os, '') AS str_os, " +
"job.int_frame_count, " +
"job.int_layer_count, " +
"job_stat.int_waiting_count, " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public VirtualProc mapRow(ResultSet rs, int rowNum) throws SQLException {
"proc.int_virt_max_used,"+
"proc.int_virt_used,"+
"host.str_name AS host_name, " +
"job.str_os " +
"COALESCE(job.str_os, '') AS str_os " +
"FROM " +
"proc, " +
"job, " +
Expand Down Expand Up @@ -389,7 +389,7 @@ public VirtualProc findVirtualProc(FrameInterface frame) {
"proc.*, " +
"host.str_name AS host_name, " +
"host.pk_alloc, " +
"job.str_os, " +
"COALESCE(job.str_os, '') AS str_os, " +
"alloc.pk_facility " +
"FROM " +
"proc, " +
Expand Down Expand Up @@ -530,7 +530,7 @@ public String getCurrentFrameId(ProcInterface p) {
"SELECT " +
"proc.*, " +
"host.str_name AS host_name, " +
"job.str_os, " +
"COALESCE(job.str_os, '') AS str_os, " +
"host.pk_alloc, " +
"alloc.pk_facility " +
"FROM " +
Expand Down

0 comments on commit 471bc0f

Please sign in to comment.