Skip to content

Commit 338ff17

Browse files
committed
fix: not enough args error handling [testnetdeploy]
Signed-off-by: Bruno Calza <brunoangelicalza@gmail.com>
1 parent 6d27a47 commit 338ff17

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
username: validator
8787
key: ${{ env.vm_ssh_key }}
8888
port: 22
89-
script_stop: true
9089
command_timeout: 30m
9190
script: |
9291
cd go-tableland

.github/workflows/review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
go-version: 1.19
2121
- name: Checkout code
2222
uses: actions/checkout@v2
23-
- uses: actions/cache@v2
23+
- uses: actions/cache@v3
2424
with:
2525
path: |
2626
~/go/bin

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
go-version: ${{ matrix.go-version }}
2929
- name: Checkout code
3030
uses: actions/checkout@v2
31-
- uses: actions/cache@v2
31+
- uses: actions/cache@v3
3232
with:
3333
path: |
3434
~/go/pkg/mod

pkg/eventprocessor/impl/executor/impl/txnscope_runsql.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ func (ts *txnScope) executeWriteStmt(
269269
Msg: err.Error(),
270270
}
271271
}
272+
273+
if strings.Contains(err.Error(), "not enough args to execute query") {
274+
return &errQueryExecution{
275+
Code: "SQLITE_DRIVER_NOT_ENOUGH_ARGS",
276+
Msg: err.Error(),
277+
}
278+
}
279+
272280
return fmt.Errorf("exec query: %s", err)
273281
}
274282

0 commit comments

Comments
 (0)