On Wed, Dec 04, 2002 at 08:20:52AM +1100, Steve Baldwin wrote: > I'm sure this has been asked many times before, but Tim's reply here > prompted me to ask again. Is there any way to access the DB version (as > per your example of get_info(18) below) from DBI. For example as an > attribute of the database handle. I've consulted the manual, but > couldn't find any reference to this. We currently have a requirement to > support Oracle 7.3 and 9i, and in some cases the SQL we execute needs to > be different (to take advantage of 9i features). At present we obtain > the version ourselves by issuing : > "select banner from v$version", and parsing the appropriate bits out. I > reckon it would be nicer (and presumably more portable) if the DBD layer > could expose this info. > > Whadayareckon ?
$dbh->get_info(18) is supported in the next release (thanks to Steffen Goeldner). Tim. p.s. Don't forget to change the subject line when changing the topic
