I have a need to avoid prepare_cached().  I found the disable_sth_caching 
option in the manual.

What I haven't yet found is an example of how to actually set it.

The manual says that these options are normally accessed via 
the connection method in DBIx::Class::Schema.  It also has some examples.  
The examples don't seem to actually show what you'd call ->connect_info() 
off of, though, and I've not yet figured that out.

These options look like the values that are passed to connect, and seem to 
be related.    DBIx::Class::Schema says that connect is a shortcut for 
$schema->clone->connection() and that connection() passes the parameters 
to $storage->connect_info().

I tried just passing them to my schema's connect() call, both as part of 
the DBI parameter hashref, and as a separate parameter.  As part of the 
DBI hashref, it seems to be ignored.  As a fourth parameter, it causes:

DBIx::Class::Storage::DBI::dbh(): DBI Connection failed: Usage: 
$class->connect([$dsn [,$user [,$passwd [,\%attr]]]])

Can someone point out what I'm missing?

-- 
Louis Erickson - [EMAIL PROTECTED] - http://www.rdwarf.com/~wwonko/

"Nirvana?  Thats the place where the powers that be and their friends
hang out.
                -- Zonker Harris

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to