NewContext implements the Handler interface.
(ctx context.Context, c *mysql.Conn, query string)
| 281 | stmtType == duckdb.STATEMENT_TYPE_RELATION { |
| 282 | // Add LIMIT 0 to avoid executing the actual query. |
| 283 | query = "SELECT * FROM (" + sql.RemoveSpaceAndDelimiter(query, ';') + ") LIMIT 0" |
| 284 | } |
| 285 | params := make([]any, len(paramTypes)) // all nil |
| 286 | rows, err = execer.QueryContext(sqlCtx, query, params...) |
| 287 | if err != nil { |
| 288 | break |
no test coverage detected