Re: [PEPr] +1 for Database::DB_odbtp

From: Date: Fri, 10 Sep 2004 17:58:52 +0000
Subject: Re: [PEPr] +1 for Database::DB_odbtp
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33335@lists.php.net to get a copy of this message
Yep, definitely missed it! Because DB_odbc is similar in nature to DB_odbtp, I was also using it as a guide. If you look at the code for DB_odbc, it does not support ODBC DSN-Less connections in the manner you outlined below. In the case of DB_odbc, you have to set 'hostspec' or 'database' to the DSN-Less string. So, it was not obvious to me that it would be improper to use 'username' for the same purpose. I will modify DB_odbtp to properly support DB's DSN structure. Thanks, and sorry for my confusion. -- bob On Fri, 10 Sep 2004, Daniel Convissor wrote: > Hi Bob: > > On Fri, Sep 10, 2004 at 10:59:05AM -0400, Robert Twitty wrote: > > As you can see, DSN-Leess connect strings are too anarchal for full > > accomodation by DB's DSN spec. Unless, of course, there is something > > that I am missing. > > When using a PEAR::DB DSN string, standard DSN portions go in their > assigned places. Extra items go into the "option" string on the end > in name=value pairs. > > When using a PEAR::DB DSN array, use the normal elements for normal > DSN items and just add the extra elements for the extra stuff and > you're good to go. > > Thanks, > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 >

« previous php.pear.dev (#33335) next »