Patch for the Pgsql adapter regarding multiple prepared statements