|
|
@ -197,6 +197,7 @@ func (this *Query) Clean() *Query { |
|
|
|
this.save_data = this.save_data[0:0] |
|
|
|
this.upd_field = this.upd_field[0:0] |
|
|
|
this.having = "" |
|
|
|
this.alias = "" |
|
|
|
return this |
|
|
|
} |
|
|
|
|
|
|
@ -266,6 +267,11 @@ func (this *Query) GetTableInfo(table string) (map[string]interface{}, error) { |
|
|
|
}, nil |
|
|
|
} |
|
|
|
|
|
|
|
// 返回表名
|
|
|
|
func (this *Query) GetTableName(table string) string { |
|
|
|
return getTableName(this.dbname, table) |
|
|
|
} |
|
|
|
|
|
|
|
// 构造子查询
|
|
|
|
func (this *Query) BuildSelectSql() (map[string]interface{}, error) { |
|
|
|
if this.dbname == "" && this.table == "" { |
|
|
|