|
@@ -22,7 +22,7 @@ func (session *Session) QueryBytes(sqlStr string, args ...interface{}) ([]map[st
|
|
|
return session.queryBytes(sqlStr, args...)
|
|
return session.queryBytes(sqlStr, args...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func reflect2value(rawValue *reflect.Value) (str string, err error) {
|
|
|
|
|
|
|
+func value2String(rawValue *reflect.Value) (str string, err error) {
|
|
|
aa := reflect.TypeOf((*rawValue).Interface())
|
|
aa := reflect.TypeOf((*rawValue).Interface())
|
|
|
vv := reflect.ValueOf((*rawValue).Interface())
|
|
vv := reflect.ValueOf((*rawValue).Interface())
|
|
|
switch aa.Kind() {
|
|
switch aa.Kind() {
|
|
@@ -69,14 +69,6 @@ func reflect2value(rawValue *reflect.Value) (str string, err error) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func value2String(rawValue *reflect.Value) (data string, err error) {
|
|
|
|
|
- data, err = reflect2value(rawValue)
|
|
|
|
|
- if err != nil {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- return
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func row2mapStr(rows *core.Rows, fields []string) (resultsMap map[string]string, err error) {
|
|
func row2mapStr(rows *core.Rows, fields []string) (resultsMap map[string]string, err error) {
|
|
|
result := make(map[string]string)
|
|
result := make(map[string]string)
|
|
|
scanResultContainers := make([]interface{}, len(fields))
|
|
scanResultContainers := make([]interface{}, len(fields))
|