good morning!!!!

Skip to content
Snippets Groups Projects
Commit e11150cc authored by Maciej Lisiewski's avatar Maciej Lisiewski
Browse files

Fixed panic on zero length, terminator-less int64array value

parent 316f4c07
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,9 @@ func (a *Int64Array) Scan(src interface{}) error { ...@@ -148,6 +148,9 @@ func (a *Int64Array) Scan(src interface{}) error {
if !ok { if !ok {
return errors.New("Scan source was not []bytes") return errors.New("Scan source was not []bytes")
} }
if len(b) == 0 {
return nil
}
s := string(b)[1 : len(b)-1] s := string(b)[1 : len(b)-1]
results := make([]int64, 0) results := make([]int64, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment