Missed species table reference
This commit is contained in:
		
							parent
							
								
									d033f22f12
								
							
						
					
					
						commit
						232394ea8a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -82,7 +82,7 @@ func (s SpeciesService) list(opt *ListOptions) (entity, error) { | ||||||
| 
 | 
 | ||||||
| 	if len(opt.Ids) != 0 { | 	if len(opt.Ids) != 0 { | ||||||
| 		var conds []string | 		var conds []string | ||||||
| 		s := "st.id IN (" | 		s := "sp.id IN (" | ||||||
| 		for i, id := range opt.Ids { | 		for i, id := range opt.Ids { | ||||||
| 			s = s + fmt.Sprintf("$%v,", i+2) // start param index at 2 | 			s = s + fmt.Sprintf("$%v,", i+2) // start param index at 2 | ||||||
| 			vals = append(vals, id) | 			vals = append(vals, id) | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Matthew Dillon
						Matthew Dillon