This is an odd issue...
I'm using Rose::DB::Object under mod_perl & apache::dbi
During setup i connect with a real db handle so I can prime_all_caches
Then I disconnect and do a little swap, setting the db args to NULL/
NULL/NULL -- this is just to make sure that Rose doesn't handle any
of its own connections. i'm using connection pooling and multiple
handles / transactions, so I just create rose::db objects with
whatever db i'm using at the time, and pass them to rose::db::object
objects as needed.
the problem is that after long periods of inactivity on my dev box, i
get
[Mon Oct 09 14:51:04 2006] [error] [client 127.0.0.1] DBI connect
('dbname=NULL;host=localhost','NULL',...) failed: FATAL: database
"NULL" does not exist\n at /Library/Perl/5.8.6/Rose/DB.pm line 685
\nCompilation failed in require at /Library/Perl/5.8.6/darwin-thread-
multi-2level/Apache2/Reload.pm line 160.\n
so reload (?) or rose is causing this non-functional rose::db class
to try and connect-- which it never can.
before doing a dirty hack ( tossing in a sqlite or something )- i was
hoping someone could point me to where I can better track this down
to catch it.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object