CodeMaestro
xata raises error if `RESET ALL;` is called
More detail:
I split the
pool.acquire()
and pool.release()
calls to make it more obvious that the release raises the error (normally you'd use a context manager). The stack goes pretty deep but ultimately you end up in asyncpg/connection.py
line 1500 in Connection.reset
which is await self.execute(reset_query, timeout=timeout)
. Using the debugger I can see that reset_query
=
Using this information we can modify our reproduction code like this:
This confirms that the first 3 statements succeed and that RESET ALL;
is the failure. RESET ALL is correct postgres syntax so I suspect that xata is raising the setting "" is not allowed
server side.3 replies