(query string)
| 36 | } |
| 37 | |
| 38 | func (e *pipelineRecordingExecutor) exec(query string) (ExecResult, error) { |
| 39 | query = strings.TrimSpace(query) |
| 40 | if strings.HasPrefix(strings.ToUpper(query), "EXPLAIN") { |
| 41 | // validateWithDuckDB probe for SQL pg_query couldn't parse. |
| 42 | return nil, errors.New("Parser Error: syntax error at or near \"SELEC\"") |
| 43 | } |
| 44 | e.execCalls = append(e.execCalls, query) |
| 45 | return &fakeExecResult{}, nil |
| 46 | } |
| 47 | |
| 48 | func (e *pipelineRecordingExecutor) QueryContext(context.Context, string, ...any) (RowSet, error) { |
| 49 | return nil, errors.New("Parser Error: syntax error at or near \"SELEC\"") |
no outgoing calls
no test coverage detected