(value interface{}, specialTableName string)
| 514 | } |
| 515 | |
| 516 | func (stmt *Statement) ParseWithSpecialTableName(value interface{}, specialTableName string) (err error) { |
| 517 | if stmt.Schema, err = schema.ParseWithSpecialTableName(value, stmt.DB.cacheStore, stmt.DB.NamingStrategy, specialTableName); err == nil && stmt.Table == "" { |
| 518 | if tables := strings.Split(stmt.Schema.Table, "."); len(tables) == 2 { |
| 519 | stmt.TableExpr = &clause.Expr{SQL: stmt.Quote(stmt.Schema.Table)} |
| 520 | stmt.Table = tables[1] |
| 521 | return |
| 522 | } |
| 523 | |
| 524 | stmt.Table = stmt.Schema.Table |
| 525 | } |
| 526 | return err |
| 527 | } |
| 528 | |
| 529 | func (stmt *Statement) clone() *Statement { |
| 530 | newStmt := &Statement{ |
no test coverage detected