use tabs
This commit is contained in:
parent
286b8725ed
commit
59412a951c
|
@ -25,3 +25,4 @@ vendor
|
|||
|
||||
*.log
|
||||
.vendor
|
||||
temp_test.go
|
||||
|
|
|
@ -3301,7 +3301,7 @@ func testCompositeKey(engine *Engine, t *testing.T) {
|
|||
t.Error(errors.New("can't get CompositeKey{11, 22}"))
|
||||
}
|
||||
|
||||
compositeKeyVal = CompositeKey{UpdateStr:"test1"}
|
||||
compositeKeyVal = CompositeKey{UpdateStr: "test1"}
|
||||
cnt, err = engine.Id(PK{11, 22}).Update(&compositeKeyVal)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -3317,7 +3317,6 @@ func testCompositeKey(engine *Engine, t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func testAll(engine *Engine, t *testing.T) {
|
||||
fmt.Println("-------------- directCreateTable --------------")
|
||||
directCreateTable(engine, t)
|
||||
|
|
|
@ -36,4 +36,3 @@ type AfterUpdateProcessor interface {
|
|||
type AfterDeleteProcessor interface {
|
||||
AfterDelete()
|
||||
}
|
||||
|
||||
|
|
|
@ -1582,7 +1582,6 @@ func (session *Session) bytes2Value(col *Column, fieldValue *reflect.Value, data
|
|||
key := col.Name
|
||||
fieldType := fieldValue.Type()
|
||||
|
||||
|
||||
//fmt.Println("column name:", key, ", fieldType:", fieldType.String())
|
||||
switch fieldType.Kind() {
|
||||
case reflect.Complex64, reflect.Complex128:
|
||||
|
|
|
@ -609,7 +609,6 @@ func (statement *Statement) genColumnStr() string {
|
|||
func (statement *Statement) genCreateTableSQL() string {
|
||||
sql := "CREATE TABLE IF NOT EXISTS " + statement.Engine.Quote(statement.TableName()) + " ("
|
||||
|
||||
|
||||
pkList := []string{}
|
||||
|
||||
for _, colName := range statement.RefTable.ColumnsSeq {
|
||||
|
@ -835,4 +834,3 @@ func (statement *Statement) processIdParam() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue