diff --git a/db.go b/db.go index 67e44c1..8be7d44 100644 --- a/db.go +++ b/db.go @@ -557,6 +557,8 @@ func GetRow(dbName, table_name, alias string, titles string, with, join [][]stri if col != nil { if !close_hump { index = helper.StrFirstToUpper(strings.ToLower(columns[i])) + } else { + index = strings.ToLower(columns[i]) } info[index] = DmFormatDecimal(col) } @@ -580,6 +582,8 @@ func GetRow(dbName, table_name, alias string, titles string, with, join [][]stri if col != nil { if !close_hump { index = helper.StrFirstToUpper(columns[i]) + } else { + index = columns[i] } info[index] = helper.ToString(col) } @@ -806,6 +810,8 @@ func FetchRows(dbName, table_name, alias string, titles string, with, join [][]s if col != nil { if !close_hump { index = helper.StrFirstToUpper(strings.ToLower(columns[i])) + } else { + index = strings.ToLower(columns[i]) } info[index] = DmFormatDecimal(col) } @@ -834,6 +840,8 @@ func FetchRows(dbName, table_name, alias string, titles string, with, join [][]s if col != nil { if !close_hump { index = helper.StrFirstToUpper(columns[i]) + } else { + index = columns[i] } info[index] = helper.ToString(col) }