Skip to content

Disabling prepared statements in gino #800

Answered by fantix
ilanKeshet asked this question in Q&A
Discussion options

You must be logged in to vote

Does GIno 1.0.1 automatically self uses prepared statements?

Depends on how you define "prepared statements" - in Postgres protocol, there are two ways to execute a query, the Simple Query and the Extended Query. While the Simple Query is done with a single request message, the extended query is done with multiple messages including Parse, Bind, and Execute. Specically, the Parse message could contain an optional name. If the name is specified, it is equivalent to the "PREPARE" SQL, or else it's similar to Simple Query (but you still get an "anonymous" prepared statement). asyncpg always uses the Extended Query, and automatically assign names to prepared statements on regular queries (n…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ilanKeshet
Comment options

Comment options

You must be logged in to vote
1 reply
@ilanKeshet
Comment options

Comment options

You must be logged in to vote
1 reply
@ilanKeshet
Comment options

Answer selected by ilanKeshet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants