From fec3ba5a66bbeaf982178c680fd2eec4b2db30ba Mon Sep 17 00:00:00 2001 From: Tim Evens Date: Wed, 12 Oct 2022 09:06:28 -0700 Subject: [PATCH] Fix ls_link_log unreserved_bw and missing comma --- database/1_base.sql | 2 +- src/main/java/org/openbmp/psqlquery/LsLinkQuery.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/1_base.sql b/database/1_base.sql index d2c508c..a941b77 100644 --- a/database/1_base.sql +++ b/database/1_base.sql @@ -605,7 +605,7 @@ CREATE TABLE ls_links_log ( admin_group bigint NOT NULL, max_link_bw bigint, max_resv_bw bigint, - unreserved_bw varchar(60), + unreserved_bw varchar(128), te_def_metric bigint, protection_type varchar(60), mpls_proto_mask ls_mpls_proto_mask, diff --git a/src/main/java/org/openbmp/psqlquery/LsLinkQuery.java b/src/main/java/org/openbmp/psqlquery/LsLinkQuery.java index a0eca98..27ee366 100644 --- a/src/main/java/org/openbmp/psqlquery/LsLinkQuery.java +++ b/src/main/java/org/openbmp/psqlquery/LsLinkQuery.java @@ -101,7 +101,7 @@ public Map genValuesStatement() { sb.append(pojo.getRemote_link_id()); sb.append(','); sb.append('\''); sb.append(pojo.getLocal_node_hash()); sb.append("'::uuid,"); sb.append('\''); sb.append(pojo.getRemote_node_hash()); sb.append("'::uuid,"); - sb.append(pojo.getAdmin_group()); sb.append("::bigint"); + sb.append(pojo.getAdmin_group()); sb.append("::bigint"); sb.append(','); sb.append(pojo.getMax_link_bw()); sb.append(','); sb.append(pojo.getMax_resv_bw()); sb.append(','); sb.append('\''); sb.append(pojo.getUnreserved_bw()); sb.append("',");