fix test
This commit is contained in:
		
							parent
							
								
									4db3fde9c5
								
							
						
					
					
						commit
						4f189a7eae
					
				| @ -18,7 +18,7 @@ services: | ||||
|       - POSTGRES_USER=gorm | ||||
|       - POSTGRES_PASSWORD=gorm | ||||
|   mssql: | ||||
|     image: '${MSSQL_IMAGE}:2022-latest' | ||||
|     image: '${MSSQL_IMAGE}:latest' | ||||
|     ports: | ||||
|       - "127.0.0.1:9930:1433" | ||||
|     environment: | ||||
|  | ||||
| @ -846,7 +846,7 @@ func TestGenericsToSQL(t *testing.T) { | ||||
| 		return tx | ||||
| 	}) | ||||
| 
 | ||||
| 	if !regexp.MustCompile("SELECT \\* FROM `users`.* 10").MatchString(sql) { | ||||
| 	if !regexp.MustCompile("SELECT \\* FROM .users..* 10").MatchString(sql) { | ||||
| 		t.Errorf("ToSQL: got wrong sql with Generics API %v", sql) | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jinzhu
						Jinzhu