mirror of https://github.com/cloudreve/Cloudreve
				
				
				
			Fix: search function should not convert case (#288)
							parent
							
								
									2e342806b6
								
							
						
					
					
						commit
						0575b0aa92
					
				| 
						 | 
				
			
			@ -89,7 +89,7 @@ func GetFilesByKeywords(uid uint, keywords ...interface{}) ([]File, error) {
 | 
			
		|||
 | 
			
		||||
	// 生成查询条件
 | 
			
		||||
	for i := 0; i < len(keywords); i++ {
 | 
			
		||||
		conditions += "LOWER(name) like ?"
 | 
			
		||||
		conditions += "name like ?"
 | 
			
		||||
		if i != len(keywords)-1 {
 | 
			
		||||
			conditions += " or "
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@ package conf
 | 
			
		|||
var BackendVersion = "3.0.0-beta1"
 | 
			
		||||
 | 
			
		||||
// RequiredDBVersion 与当前版本匹配的数据库版本
 | 
			
		||||
var RequiredDBVersion = "3.0.0-rc1"
 | 
			
		||||
var RequiredDBVersion = "3.0.0"
 | 
			
		||||
 | 
			
		||||
// RequiredStaticVersion 与当前版本匹配的静态资源版本
 | 
			
		||||
var RequiredStaticVersion = "3.0.0"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue