Skip to content

Commit

Permalink
Always sync the state in pgcon.run_ddl (#7035)
Browse files Browse the repository at this point in the history
This is extracted from #7025, for history cleanliness and backportability.
  • Loading branch information
msullivan authored and aljazerzen committed Mar 19, 2024
1 parent 270ccde commit 1849339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edb/server/pgcon/pgcon.pyx
Expand Up @@ -2245,10 +2245,10 @@ cdef class PGConnection:
object query_unit,
bytes state=None
):
data = await self.sql_fetch(query_unit.sql, state=state)
if query_unit.ddl_stmt_id is None:
return await self.sql_execute(query_unit.sql)
return
else:
data = await self.sql_fetch(query_unit.sql, state=state)
return self.load_ddl_return(query_unit, data)

def load_ddl_return(self, object query_unit, data):
Expand Down

0 comments on commit 1849339

Please sign in to comment.