- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExplainSQL (0.13 sec)
-
logger/sql.go
return true case reflect.Float32, reflect.Float64: return true default: return false } } // ExplainSQL generate SQL string with given parameters, the generated SQL is expected to be used in logger, execute it might introduce a SQL injection vulnerability func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string { var ( convertParams func(interface{}, int)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0) -
logger/sql_test.go
}, } for idx, r := range results { if result := logger.ExplainSQL(r.SQL, r.NumericRegexp, `"`, r.Vars...); result != r.Result { t.Errorf("Explain SQL #%v expects %v, but got %v", idx, r.Result, result) } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0)