From 1e01b847e1bfc7fb86511f65449c66c0886a8d5c Mon Sep 17 00:00:00 2001 From: Vikas Mathur Date: Fri, 30 Aug 2024 02:00:01 -0400 Subject: [PATCH 1/5] update pool testcases --- testdata/main.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/testdata/main.go b/testdata/main.go index 29b6d62..b1031d7 100755 --- a/testdata/main.go +++ b/testdata/main.go @@ -546,8 +546,12 @@ func ConnectionPool() int { var flag int flag = 0 - db := Createconnection() - defer db.Close() + errCreatetable := Createtable(); + if errCreatetable != nil { + fmt.Println("Createtable error: ", errCreatetable) + return 0 + } + Insert() pool := a.Pconnect("PoolSize=5") @@ -589,8 +593,12 @@ func ConnectionPoolWithTimeout() int { var flag int flag = 0 - db := Createconnection() - defer db.Close() + errCreatetable := Createtable(); + if errCreatetable != nil { + fmt.Println("Createtable error: ", errCreatetable) + return 0 + } + Insert() pool := a.Pconnect("PoolSize=3") From f5b20008dcb686f6f4c5b36d07c680ac4b122003 Mon Sep 17 00:00:00 2001 From: Bimal Kumar Jha Date: Sat, 31 Aug 2024 16:59:36 +0530 Subject: [PATCH 2/5] Update go.yml --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8bd2d08..383c370 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,6 +38,7 @@ jobs: - name: Test env: DB2_CONNSTR: ${{ secrets.DB2_CONNSTR }} + if: ${{ DB2_CONNSTR != '' && DB2_CONNSTR != null }} run: | pwd cd testdata From 005449ba46d24293fe85e3f4383d6838b77b513a Mon Sep 17 00:00:00 2001 From: Bimal Kumar Jha Date: Sat, 31 Aug 2024 17:01:20 +0530 Subject: [PATCH 3/5] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 383c370..cf97e72 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: - name: Test env: DB2_CONNSTR: ${{ secrets.DB2_CONNSTR }} - if: ${{ DB2_CONNSTR != '' && DB2_CONNSTR != null }} + if: ${{ secrets.DB2_CONNSTR != '' && secrets.DB2_CONNSTR != null }} run: | pwd cd testdata From 0658c0093237f78cdaf8fa3fa1da724a4a239130 Mon Sep 17 00:00:00 2001 From: Bimal Kumar Jha Date: Sat, 31 Aug 2024 17:10:52 +0530 Subject: [PATCH 4/5] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cf97e72..5e7d5d5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: - name: Test env: DB2_CONNSTR: ${{ secrets.DB2_CONNSTR }} - if: ${{ secrets.DB2_CONNSTR != '' && secrets.DB2_CONNSTR != null }} + if: ${{ env.DB2_CONNSTR != '' && env.DB2_CONNSTR != null }} run: | pwd cd testdata From 8b14f5e19032ffa756403097c1244da165ae04c4 Mon Sep 17 00:00:00 2001 From: Bimal Kumar Jha Date: Sat, 31 Aug 2024 17:34:00 +0530 Subject: [PATCH 5/5] Update actions version in go.yml Update actions version in go.yml to use Nodejs20 --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5e7d5d5..405e8ea 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,10 +14,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22.5'