git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cvsserver: suppress warnings

From
MCMartin Langhoff (CatalystIT) <martin@catalyst.net.nz>
Date
Jul 25, 2006, 11:06 UTC
Message-ID
<44C5FB3E.9020301@catalyst.net.nz>
In-Reply-To
<Pine.LNX.4.63.0607251247040.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
> This patch defines $state->{prependdir} as the empty string, so that
> quite a few warnings are avoided.
Ack.
> 	I still get this warning:
> 
> 		closing dbh with active statement handles

Ack to that too. Perhaps an END block would help? A quick check of man DBI tells me that $dbh->CachedKids will be a hashref where the values are refs to the cached statement handles.

IMHO it's a DBI bug -- statement handles only referenced by $dbh->CachedKids should cleanup silently. prepare_cached() is a convenience method so that you _don't_ have to keep track of the handles manually. Forcing a manual cleanup throws a good part of the convenience out.

cheers,
martin
-- 
-----------------------------------------------------------------------
Martin @ Catalyst .Net .NZ  Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/           PHYS: Level 2, 150-154 Willis St
OFFICE: +64(4)916-7224                              MOB: +64(21)364-017
       Make things as simple as possible, but no simpler - Einstein
-----------------------------------------------------------------------
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 9 in “cvsserver: suppress warnings”
  1. cvsserver: suppress warningsJohannes Schindelin, Jul 25, 2006
  2. Martin Langhoff (CatalystIT)Jul 25, 2006
  3. Johannes SchindelinJul 25, 2006
  4. Martin LanghoffJul 25, 2006
  5. Johannes SchindelinJul 25, 2006
  6. git-1.4.1.1-1 git-clone-pack: unable to read from git-index-packMike Galbraith, Jul 25, 2006
  7. Mike GalbraithJul 25, 2006
  8. Johannes SchindelinJul 25, 2006
  9. Ryan AndersonJul 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.