mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 04:17:08 +00:00 
			
		
		
		
	Use AfterLoad instead of AfterSet on Structs (#2628)
* use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/github.com/go-xorm/xorm/statement.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/go-xorm/xorm/statement.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -73,6 +73,7 @@ type Statement struct { | ||||
| 	decrColumns     map[string]decrParam | ||||
| 	exprColumns     map[string]exprParam | ||||
| 	cond            builder.Cond | ||||
| 	bufferSize      int | ||||
| } | ||||
|  | ||||
| // Init reset all the statement's fields | ||||
| @@ -111,6 +112,7 @@ func (statement *Statement) Init() { | ||||
| 	statement.decrColumns = make(map[string]decrParam) | ||||
| 	statement.exprColumns = make(map[string]exprParam) | ||||
| 	statement.cond = builder.NewCond() | ||||
| 	statement.bufferSize = 0 | ||||
| } | ||||
|  | ||||
| // NoAutoCondition if you do not want convert bean's field as query condition, then use this function | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao