(command, *args, **kwargs)
| 291 | L = ListPopAll() |
| 292 | |
| 293 | def _exec_command(command, *args, **kwargs): |
| 294 | if isinstance((cmdcopy := command), bytes): |
| 295 | cmdcopy = cmdcopy.decode(conn.info.encoding) |
| 296 | elif isinstance(cmdcopy, sql.Composable): |
| 297 | cmdcopy = cmdcopy.as_string(conn) |
| 298 | |
| 299 | L.append(cmdcopy) |
| 300 | return _orig_exec_command(command, *args, **kwargs) |
| 301 | |
| 302 | monkeypatch.setattr(conn, "_exec_command", _exec_command) |
| 303 | return L |
nothing calls this directly
no test coverage detected
searching dependent graphs…