diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index 94bb824..1ed7f36 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -332,7 +332,7 @@ SELECT ,'replace_version' "version" ,'replace_source'||' volume' iter ,log.id - ,log.doc->>'message' "comment" + ,COALESCE(log.doc->>'message','') "comment" ,log.doc->>'type' module FROM basemix b diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index 442020e..1638e70 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -167,7 +167,7 @@ target AS (select target_increment incr) ,'replace_version' "version" ,'replace_source'||' price' iter ,log.id - ,log.doc->>'message' "comment" + ,COALESCE(log.doc->>'message','') "comment" ,log.doc->>'type' module FROM basemix b diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index db88757..9d09f1a 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -196,7 +196,7 @@ target AS (select incr_qty qincr) ,'replace_version' "version" ,'replace_source'||' volume' iter ,log.id - ,log.doc->>'message' "comment" + ,COALESCE(log.doc->>'message','') "comment" ,log.doc->>'type' module FROM basemix b diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index 9641bab..cdfdd7a 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -195,7 +195,7 @@ target AS (select target_vol vincr, target_prc pincr) ,'replace_version' "version" ,'replace_source'||' volume' iter ,log.id - ,log.doc->>'message' "comment" + ,COALESCE(log.doc->>'message','') "comment" ,log.doc->>'type' module FROM basemix b @@ -274,7 +274,7 @@ FROM ,'replace_version' "version" ,'replace_source'||' price' iter ,log.id - ,log.doc->>'message' "comment" + ,COALESCE(log.doc->>'message','') "comment" ,log.doc->>'type' module FROM volume b