[Jifty-commit] r7238 - Jifty-DBI/trunk/lib/Jifty/DBI
Jifty commits
jifty-commit at lists.jifty.org
Thu Jun 11 15:37:17 EDT 2009
Author: sartak
Date: Thu Jun 11 15:37:17 2009
New Revision: 7238
Modified:
Jifty-DBI/trunk/lib/Jifty/DBI/Handle.pm
Log:
Document the quirky return value of ->connect
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Handle.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Handle.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Handle.pm Thu Jun 11 15:37:17 2009
@@ -73,6 +73,10 @@
and there is a Jifty::DBI::Handle::(Driver) subclass for the driver you have chosen,
the handle will be automatically "upgraded" into that subclass.
+If there is an error, an exception will be thrown. If a connection has already
+been established and is still active, C<undef> will be returned (which is not
+an error). Otherwise, if a new connection is made, a true value will be returned.
+
=cut
sub connect {
More information about the Jifty-commit
mailing list