Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for default (0.17 sec)

  1. scan.go

    		*sql.NullBool, *sql.NullString, *sql.NullTime:
    		for initialized || rows.Next() {
    			initialized = false
    			db.RowsAffected++
    			db.AddError(rows.Scan(dest))
    		}
    	default:
    		var (
    			fields       = make([]*schema.Field, len(columns))
    			joinFields   [][]*schema.Field
    			sch          = db.Statement.Schema
    			reflectValue = db.Statement.ReflectValue
    		)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. migrator/migrator.go

    			m.Dialector.BindVarTo(defaultStmt, defaultStmt, field.DefaultValueInterface)
    			expr.SQL += " DEFAULT " + m.Dialector.Explain(defaultStmt.SQL.String(), field.DefaultValueInterface)
    		} else if field.DefaultValue != "(-)" {
    			expr.SQL += " DEFAULT " + field.DefaultValue
    		}
    	}
    
    	return
    }
    
    func (m Migrator) GetQueryAndExecTx() (queryTx, execTx *gorm.DB) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  3. callbacks/preload.go

    					if err := preloadEntryPoint(tx, nestedJoins, &tx.Statement.Schema.Relationships, preloadMap[name], associationsConds); err != nil {
    						return err
    					}
    				default:
    					return gorm.ErrInvalidData
    				}
    			} else {
    				tx := db.Table("").Session(&gorm.Session{Context: db.Statement.Context, SkipHooks: db.Statement.SkipHooks})
    				tx.Statement.ReflectValue = db.Statement.ReflectValue
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  4. tests/query_test.go

    	}
    
    	type QueryResetNullValue struct {
    		ID      int
    		Name    string     `gorm:"default:NULL"`
    		Flag    bool       `gorm:"default:NULL"`
    		Number1 int64      `gorm:"default:NULL"`
    		Number2 uint64     `gorm:"default:NULL"`
    		Number3 float64    `gorm:"default:NULL"`
    		Now     *time.Time `gorm:"defalut:NULL"`
    		Item1Id string
    		Item1   *QueryResetItem `gorm:"references:ID"`
    		Item2Id string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  5. clause/where.go

    		if len(not.Exprs) > 1 {
    			builder.WriteByte('(')
    		}
    
    		for idx, c := range not.Exprs {
    			if idx > 0 {
    				switch c.(type) {
    				case OrConditions:
    					builder.WriteString(OrWithSpace)
    				default:
    					builder.WriteString(AndWithSpace)
    				}
    			}
    
    			e, wrapInParentheses := c.(Expr)
    			if wrapInParentheses {
    				sql := strings.ToUpper(e.SQL)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top