()
| 52 | } |
| 53 | |
| 54 | func (d *selectData) ToSql() (sqlStr string, args []interface{}, err error) { |
| 55 | sqlStr, args, err = d.toSqlRaw() |
| 56 | if err != nil { |
| 57 | return |
| 58 | } |
| 59 | |
| 60 | sqlStr, err = d.PlaceholderFormat.ReplacePlaceholders(sqlStr) |
| 61 | return |
| 62 | } |
| 63 | |
| 64 | func (d *selectData) toSqlRaw() (sqlStr string, args []interface{}, err error) { |
| 65 | if len(d.Columns) == 0 { |
nothing calls this directly
no test coverage detected