You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncwithdb.acquire() asconn:
asyncwithconn.transaction():
id=awaitconn.fetchval("UPSERT INTO .... (..., ...) VALUES ($1, $2) RETURNING id", C, D)
forAinmy_list:
awaitconn.execute("UPSERT INTO .... (..., ....) VALUES ($1, $2)", A, id)
I get:
asyncpg.exceptions.FeatureNotSupportedError: unimplemented: multiple active portals is in preview, please set session variable multiple_active_portals_enabled to true to enable them
DETAIL: cannot perform operation sql.PrepareStmt while a different portal is open
HINT: You have attempted to use a feature that is not yet implemented.
See: https://go.crdb.dev/issue-v/40195/v23.1
Which I don't understand. Why do I need "multiple active portals" in this case? I'm using cockroachdb.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Given the following approximate code:
I get:
Which I don't understand. Why do I need "multiple active portals" in this case? I'm using cockroachdb.
Beta Was this translation helpful? Give feedback.
All reactions