ZF-5099: Add getServerVersion to Zend_Db_Adapter_Abstract

Description

Add the server version in PHP format (i.e.: "5.0.67") to be able to use version_compare

Comments

Added with SVN12941.

Tested with adapters: Oracle, Mysqli, Pdo_Oci, Pdo_Mysql, Pdo_Sqlite, Pdo_Pgsql.

Must be tested with: Db2 and Pdo_Mssql

Must add documentation for the feature

SVN12958 adds support for Pdo_Ibm (now also tested with Db2 and Pdo_Ibm)

SVN12960 adds supports for Pdo_Mssql


phpunit --verbose --group ZF-5099 Zend_Db_AllTests
PHPUnit 3.3.5 by Sebastian Bergmann.
 Zend Framework - Zend_Db
  Zend_Db_Adapter_StaticTest
  .
  Zend_Db_Adapter_Db2Test
  .
  Zend_Db_Adapter_MysqliTest
  .
  Zend_Db_Adapter_OracleTest
  .
  Zend_Db_Adapter_Pdo_IbmTest
  .
  Zend_Db_Adapter_Pdo_MssqlTest
  .
  Zend_Db_Adapter_Pdo_MysqlTest
  .
  Zend_Db_Adapter_Pdo_OciTest
  .
  Zend_Db_Adapter_Pdo_PgsqlTest
  .
  Zend_Db_Adapter_Pdo_SqliteTest
  .
Time: 14 seconds
OK (10 tests, 30 assertions)

Merged to 1.7-branch

Is this a new feature? If so, it should not be merged to the 1.7 branch and should wait for the next minor release: 1.8. Don't worry about backing it out now, but please remember this for future releases.

I expose this method to public but it is mainly used internally to resolve ZF-5082. I asked Ralph before merging it ;)