mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
		| @@ -42,9 +42,10 @@ func newXORMEngine() (*xorm.Engine, error) { | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if setting.Database.Type == "mysql" { | ||||
| 	switch setting.Database.Type { | ||||
| 	case "mysql": | ||||
| 		engine.Dialect().SetParams(map[string]string{"rowFormat": "DYNAMIC"}) | ||||
| 	} else if setting.Database.Type == "mssql" { | ||||
| 	case "mssql": | ||||
| 		engine.Dialect().SetParams(map[string]string{"DEFAULT_VARCHAR": "nvarchar"}) | ||||
| 	} | ||||
| 	engine.SetSchema(setting.Database.Schema) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user