Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pqlog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
smol
pqlog
Commits
311b9a9b
Commit
311b9a9b
authored
11 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix an error in unmarshalRecordRecursively
A refactor left a spurious array slicing.
parent
ed3b7ee5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#66530
passed
11 months ago
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
schema/tuples.go
+1
-1
1 addition, 1 deletion
schema/tuples.go
with
1 addition
and
1 deletion
schema/tuples.go
+
1
−
1
View file @
311b9a9b
...
...
@@ -88,7 +88,7 @@ func unmarshalRecordRecursively(record []byte) (map[string]any, error) {
s
=
strings
.
TrimPrefix
(
s
,
"@cee:"
)
if
strings
.
HasPrefix
(
s
,
"{"
)
{
var
m2
map
[
string
]
any
if
err
:=
json
.
Unmarshal
([]
byte
(
s
[
5
:
]),
&
m2
);
err
==
nil
{
if
err
:=
json
.
NewDecoder
(
strings
.
NewReader
(
s
))
.
Decode
(
&
m2
);
err
==
nil
{
m
[
"message"
]
=
m2
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment