Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fallthrough (0.17 sec)

  1. clause/expression.go

    	case 0:
    		builder.WriteString(" IN (NULL)")
    	case 1:
    		if _, ok := in.Values[0].([]interface{}); !ok {
    			builder.WriteString(" = ")
    			builder.AddVar(builder, in.Values[0])
    			break
    		}
    
    		fallthrough
    	default:
    		builder.WriteString(" IN (")
    		builder.AddVar(builder, in.Values...)
    		builder.WriteByte(')')
    	}
    }
    
    func (in IN) NegationBuild(builder Builder) {
    	builder.WriteQuoted(in.Column)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  2. finisher_api.go

    			for _, pf := range tx.Statement.Schema.PrimaryFields {
    				if _, isZero := pf.ValueOf(tx.Statement.Context, reflectValue); isZero {
    					return tx.callbacks.Create().Execute(tx)
    				}
    			}
    		}
    
    		fallthrough
    	default:
    		selectedUpdate := len(tx.Statement.Selects) != 0
    		// when updating, use all fields including those zero-value fields
    		if !selectedUpdate {
    			tx.Statement.Selects = append(tx.Statement.Selects, "*")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
Back to top