dbconn: Don't leak implicit transactions on connect()
The unsetting of search_path started an implicit transaction that can affect the behavior of subsequent SQL statements. A simpler solution (thanks Heikki!) is to just set the search_path for the entire connection using the connection string options. Co-authored-by: NJamie McAtamney <jmcatamney@pivotal.io> Co-authored-by: NJacob Champion <pchampion@pivotal.io> Co-authored-by: NNikolaos Kalampalikis <nkalampalikis@pivotal.io>
Showing
想要评论请 注册 或 登录