(columnNames []string, table *Table)
| 503 | } |
| 504 | |
| 505 | func (engine *DbEngine) getMissingColumnName(columnNames []string, table *Table) string { |
| 506 | for _, columnName := range columnNames { |
| 507 | exists := false |
| 508 | for _, column := range table.Columns { |
| 509 | if column.Name == columnName { |
| 510 | exists = true |
| 511 | break |
| 512 | } |
| 513 | } |
| 514 | if !exists { |
| 515 | return columnName |
| 516 | } |
| 517 | } |
| 518 | return "" |
| 519 | } |
| 520 | |
| 521 | func (engine *DbEngine) getFilteredTable(table *Table, whereCommand *ast.WhereCommand, negation bool, tableName string) (*Table, error) { |
| 522 | filteredTable := getCopyOfTableWithoutRows(table) |
no outgoing calls
no test coverage detected