Added support of "Violates Foreign Key Constraint" (#6329)
* Added support of "Violates Foreign Key Constraint" Updated the translator and added the support of "foreign key constraint violation". For this, this error type is needed here. * changed the description of ErrForeignKeyViolated
This commit is contained in:
		
							parent
							
								
									6698ba709e
								
							
						
					
					
						commit
						001738be49
					
				| @ -47,4 +47,6 @@ var ( | ||||
| 	ErrPreloadNotAllowed = errors.New("preload is not allowed when count is used") | ||||
| 	// ErrDuplicatedKey occurs when there is a unique key constraint violation
 | ||||
| 	ErrDuplicatedKey = errors.New("duplicated key not allowed") | ||||
| 	// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
 | ||||
| 	ErrForeignKeyViolated = errors.New("violates foreign key constraint") | ||||
| ) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Muhammad Amir Ejaz
						Muhammad Amir Ejaz