|
@ -378,12 +378,14 @@ func (this *TxQuery) CreateAllStmt() error { |
|
|
this.data = []string{} |
|
|
this.data = []string{} |
|
|
this.value = []interface{}{} |
|
|
this.value = []interface{}{} |
|
|
for i, datum := range this.save_data { |
|
|
for i, datum := range this.save_data { |
|
|
for s, v := range datum { |
|
|
|
|
|
if i == 0 { |
|
|
|
|
|
this.data = append(this.data, s) |
|
|
|
|
|
|
|
|
if i == 0 { |
|
|
|
|
|
for k, _ := range datum { |
|
|
|
|
|
this.data = append(this.data, k) |
|
|
dataSql = append(dataSql, "?") |
|
|
dataSql = append(dataSql, "?") |
|
|
} |
|
|
} |
|
|
this.value = append(this.value, v) |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
for _, k := range this.data { |
|
|
|
|
|
this.value = append(this.value, datum[k]) |
|
|
} |
|
|
} |
|
|
valSql = append(valSql, "("+strings.Join(dataSql, " , ")+")") |
|
|
valSql = append(valSql, "("+strings.Join(dataSql, " , ")+")") |
|
|
} |
|
|
} |
|
|