Explorar el Código

修复执行sql代码bugp

qdy hace 3 meses
padre
commit
a111ce2bb3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      functions/query_json.go

+ 2
- 0
functions/query_json.go Ver fichero

@@ -40,6 +40,8 @@ func QueryParamsNameToJSON(db *sqlx.DB, sql string, params map[string]interface{
40 40
 func QueryPositionalToJSON(db *sqlx.DB, sql string, positionalParams ...interface{}) *types.QueryResult {
41 41
 	startTime := time.Now()
42 42
 
43
+	fmt.Printf("positionalParams: %s", positionalParams)
44
+	fmt.Printf("sql: %s", sql)
43 45
 	if sql == "" {
44 46
 		return createErrorResult("SQL query cannot be empty", startTime)
45 47
 	}

Loading…
Cancelar
Guardar