Skip to content

Commit 2ec3584

Browse files
- Latest any-sdk.
1 parent 85afd76 commit 2ec3584

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/spf13/cobra v1.4.0
2020
github.com/spf13/pflag v1.0.5
2121
github.com/spf13/viper v1.10.1
22-
github.com/stackql/any-sdk v0.1.2-alpha36
22+
github.com/stackql/any-sdk v0.1.2-alpha37
2323
github.com/stackql/go-suffix-map v0.0.1-alpha01
2424
github.com/stackql/psql-wire v0.1.1-alpha07
2525
github.com/stackql/stackql-parser v0.0.14-alpha05

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
482482
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
483483
github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk=
484484
github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU=
485-
github.com/stackql/any-sdk v0.1.2-alpha36 h1:K5/6Y95BltB98WssPJDGtlqsAqfp/d5vcOQgfd4azi4=
486-
github.com/stackql/any-sdk v0.1.2-alpha36/go.mod h1:4jYKpPoX2GWEK+qBnlGLvr8SUfndiYwHMIkg1dn9tFM=
485+
github.com/stackql/any-sdk v0.1.2-alpha37 h1:bvU576YCwqtjztMD4wSpgj//StNH8qGoBRBnN6uOH1I=
486+
github.com/stackql/any-sdk v0.1.2-alpha37/go.mod h1:4jYKpPoX2GWEK+qBnlGLvr8SUfndiYwHMIkg1dn9tFM=
487487
github.com/stackql/go-suffix-map v0.0.1-alpha01 h1:TDUDS8bySu41Oo9p0eniUeCm43mnRM6zFEd6j6VUaz8=
488488
github.com/stackql/go-suffix-map v0.0.1-alpha01/go.mod h1:QAi+SKukOyf4dBtWy8UMy+hsXXV+yyEE4vmBkji2V7g=
489489
github.com/stackql/psql-wire v0.1.1-alpha07 h1:LQWVUlx4Bougk6dztDNG5tmXxpIVeeTSsInTj801xCs=

internal/stackql/execution/mono_valent_execution.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ func (mv *monoValentExecution) GetExecutor() (func(pc primitive.IPrimitiveCtx) i
13301330
stdoutStr = outputStr
13311331
}
13321332
}
1333-
var res map[string]interface{}
1333+
var res []map[string]interface{}
13341334
resErr := json.Unmarshal([]byte(stdoutStr), &res)
13351335
itemisationResult := itemise(res, resErr, "")
13361336
insertPrepResult := mv.ActionInsertPreparation(
@@ -1342,7 +1342,9 @@ func (mv *monoValentExecution) GetExecutor() (func(pc primitive.IPrimitiveCtx) i
13421342
"",
13431343
),
13441344
)
1345-
if insertPrepResult.IsHousekeepingDone() {
1345+
insertErr, hasErr := insertPrepResult.GetError()
1346+
if hasErr {
1347+
return internaldto.NewErroneousExecutorOutput(insertErr)
13461348
}
13471349
// fmt.Fprintf(os.Stdout, "%s", stdoutStr)
13481350
}

test/registry/src/local_openssl/v0.1.0/services/keys.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ resources:
225225
{{- $pubKeyAlgo := getRegexpFirstMatch $root "Public Key Algorithm: (?<anything>.*)" -}}
226226
{{- $notBefore := getRegexpFirstMatch $root "Not Before: (.*)" -}}
227227
{{- $notAfter := getRegexpFirstMatch $root "Not After(?:[ ]*): (.*)" -}}
228-
{ "type": "x509", "public_key_algorithm": "{{ $pubKeyAlgo }}", "not_before": "{{ $notBefore }}", "not_after": "{{ $notAfter }}"}
228+
[{ "type": "x509", "public_key_algorithm": "{{ $pubKeyAlgo }}", "not_before": "{{ $notBefore }}", "not_after": "{{ $notAfter }}"}]
229229
type: 'golang_template_v0.1.0'
230230
sqlVerbs:
231231
insert: []

0 commit comments

Comments
 (0)