()
| 670 | return nil |
| 671 | } |
| 672 | func (m *Source) IsSchemaQuery() bool { |
| 673 | if m.Stmt != nil && len(m.Stmt.Schema) > 0 { |
| 674 | //u.Debugf("schema:%q name:%q", m.Stmt.Schema, m.Stmt.Name) |
| 675 | schemaName := strings.ToLower(m.Stmt.Schema) |
| 676 | if schemaName == "context" || schemaName == "schema" { |
| 677 | return true |
| 678 | } |
| 679 | } |
| 680 | return false |
| 681 | } |
| 682 | func (m *Source) ToPb() (*PlanPb, error) { |
| 683 | m.serializeToPb() |
| 684 | return m.pbplan, nil |