Remove remaining array code

scan-io
Jack Christensen 2014-07-09 08:05:36 -05:00
parent 89bcc0670c
commit c4db9d3547
1 changed files with 0 additions and 18 deletions

View File

@ -161,24 +161,6 @@ func (n *NullInt64) EncodeText() (string, error) {
}
}
var arrayEl *regexp.Regexp = regexp.MustCompile(`[{,](?:"((?:[^"\\]|\\.)*)"|(NULL)|([^,}]+))`)
// SplitArrayText is used by array transcoders to split array text into elements
func SplitArrayText(text string) (elements []string) {
matches := arrayEl.FindAllStringSubmatch(text, -1)
elements = make([]string, 0, len(matches))
for _, match := range matches {
if match[1] != "" {
elements = append(elements, match[1])
} else if match[2] != "" {
elements = append(elements, match[2])
} else if match[3] != "" {
elements = append(elements, match[3])
}
}
return
}
func decodeBool(qr *QueryResult, fd *FieldDescription, size int32) bool {
switch fd.FormatCode {
case TextFormatCode: