mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	update xorm for bugs fix (#728)
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/github.com/go-xorm/xorm/engine.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/go-xorm/xorm/engine.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -359,7 +359,7 @@ func (engine *Engine) DBMetas() ([]*core.Table, error) {
 | 
			
		||||
				if col := table.GetColumn(name); col != nil {
 | 
			
		||||
					col.Indexes[index.Name] = index.Type
 | 
			
		||||
				} else {
 | 
			
		||||
					return nil, fmt.Errorf("Unknown col %s in indexe %v of table %v, columns %v", name, index.Name, table.Name, table.ColumnsSeq())
 | 
			
		||||
					return nil, fmt.Errorf("Unknown col %s in index %v of table %v, columns %v", name, index.Name, table.Name, table.ColumnsSeq())
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								vendor/github.com/go-xorm/xorm/sqlite3_dialect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/go-xorm/xorm/sqlite3_dialect.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -317,7 +317,7 @@ func (db *sqlite3) GetColumns(tableName string) ([]string, map[string]*core.Colu
 | 
			
		||||
		col.DefaultIsEmpty = true
 | 
			
		||||
		for idx, field := range fields {
 | 
			
		||||
			if idx == 0 {
 | 
			
		||||
				col.Name = strings.Trim(field, "`[] ")
 | 
			
		||||
				col.Name = strings.Trim(strings.Trim(field, "`[] "), `"`)
 | 
			
		||||
				continue
 | 
			
		||||
			} else if idx == 1 {
 | 
			
		||||
				col.SQLType = core.SQLType{Name: field, DefaultLength: 0, DefaultLength2: 0}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user