From b77c75e6e48408cb0b9b9e4d355d797bc767151d Mon Sep 17 00:00:00 2001 From: YaqinLi Date: Sat, 18 May 2024 00:59:19 +0000 Subject: [PATCH] fix a sql error --- .../com/pinterest/deployservice/db/DBPindeployDAOImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deploy-service/common/src/main/java/com/pinterest/deployservice/db/DBPindeployDAOImpl.java b/deploy-service/common/src/main/java/com/pinterest/deployservice/db/DBPindeployDAOImpl.java index 7d52098c74..a511de0235 100644 --- a/deploy-service/common/src/main/java/com/pinterest/deployservice/db/DBPindeployDAOImpl.java +++ b/deploy-service/common/src/main/java/com/pinterest/deployservice/db/DBPindeployDAOImpl.java @@ -46,8 +46,7 @@ public PindeployBean get(String envId) throws Exception { @Override public void delete(String pipeline) throws Exception { - ResultSetHandler h = new BeanHandler(PindeployBean.class); - new QueryRunner(dataSource).query(DELETE_PINDEPLOY, h, pipeline); + new QueryRunner(dataSource).update(DELETE_PINDEPLOY, pipeline); } @Override