|
@@ -283,7 +283,9 @@ func hName(sql string) []interface{} {
|
|
|
keystr := strings.ReplaceAll(s[0], "select", "")
|
|
|
keystr = strings.ReplaceAll(keystr, " ", "")
|
|
|
for _, s1 := range strings.Split(keystr, ",") {
|
|
|
- key = append(key, strings.Split(s1, "as")[1])
|
|
|
+ if strings.Contains(s1, "as") {
|
|
|
+ key = append(key, strings.Split(s1, "as")[1])
|
|
|
+ }
|
|
|
}
|
|
|
return key
|
|
|
}
|