mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
1 parent
aef4a3514c
commit
1f50048ac9
11 files changed
+37
-52
No files matched your search
@@ -159,7 +159,7 @@ func DumpQueryResult(t require.TestingT, sqlOrBean any, sqlArgs ...any) {
|
||||
goDB := x.DB().DB
|
||||
sql, ok := sqlOrBean.(string)
|
||||
if !ok {
|
||||
sql = "SELECT * FROM " + db.TableName(sqlOrBean)
|
||||
sql = "SELECT * FROM " + x.TableName(sqlOrBean)
|
||||
} else if !strings.Contains(sql, " ") {
|
||||
sql = "SELECT * FROM " + sql
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user