mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:07:56 -04:00 
			
		
		
		
	Fix error log when loading issues caused by a xorm bug (#7271)
* fix error log when loading issues caused by a xorm bug * upgrade packages * fix fmt * fix Consistency * fix tests
This commit is contained in:
		
							
								
								
									
										40
									
								
								vendor/xorm.io/builder/error.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								vendor/xorm.io/builder/error.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| // Copyright 2016 The Xorm Authors. All rights reserved. | ||||
| // Use of this source code is governed by a BSD-style | ||||
| // license that can be found in the LICENSE file. | ||||
|  | ||||
| package builder | ||||
|  | ||||
| import "errors" | ||||
|  | ||||
| var ( | ||||
| 	// ErrNotSupportType not supported SQL type error | ||||
| 	ErrNotSupportType = errors.New("Not supported SQL type") | ||||
| 	// ErrNoNotInConditions no NOT IN params error | ||||
| 	ErrNoNotInConditions = errors.New("No NOT IN conditions") | ||||
| 	// ErrNoInConditions no IN params error | ||||
| 	ErrNoInConditions = errors.New("No IN conditions") | ||||
| 	// ErrNeedMoreArguments need more arguments | ||||
| 	ErrNeedMoreArguments = errors.New("Need more sql arguments") | ||||
| 	// ErrNoTableName no table name | ||||
| 	ErrNoTableName = errors.New("No table indicated") | ||||
| 	// ErrNoColumnToInsert no column to update | ||||
| 	ErrNoColumnToUpdate = errors.New("No column(s) to update") | ||||
| 	// ErrNoColumnToInsert no column to update | ||||
| 	ErrNoColumnToInsert = errors.New("No column(s) to insert") | ||||
| 	// ErrNotSupportDialectType not supported dialect type error | ||||
| 	ErrNotSupportDialectType = errors.New("Not supported dialect type") | ||||
| 	// ErrNotUnexpectedUnionConditions using union in a wrong way | ||||
| 	ErrNotUnexpectedUnionConditions = errors.New("Unexpected conditional fields in UNION query") | ||||
| 	// ErrUnsupportedUnionMembers unexpected members in UNION query | ||||
| 	ErrUnsupportedUnionMembers = errors.New("Unexpected members in UNION query") | ||||
| 	// ErrUnexpectedSubQuery Unexpected sub-query in SELECT query | ||||
| 	ErrUnexpectedSubQuery = errors.New("Unexpected sub-query in SELECT query") | ||||
| 	// ErrDialectNotSetUp dialect is not setup yet | ||||
| 	ErrDialectNotSetUp = errors.New("Dialect is not setup yet, try to use `Dialect(dbType)` at first") | ||||
| 	// ErrInvalidLimitation offset or limit is not correct | ||||
| 	ErrInvalidLimitation = errors.New("Offset or limit is not correct") | ||||
| 	// ErrUnnamedDerivedTable Every derived table must have its own alias | ||||
| 	ErrUnnamedDerivedTable = errors.New("Every derived table must have its own alias") | ||||
| 	// ErrInconsistentDialect Inconsistent dialect in same builder | ||||
| 	ErrInconsistentDialect = errors.New("Inconsistent dialect in same builder") | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user