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