Skip to content
This repository was archived by the owner on Nov 26, 2017. It is now read-only.

Add minimum supported version information to database drivers#830

Merged
chdemko merged 5 commits intojoomla:stagingfrom
mbabker:JDatabase_minimum
Feb 7, 2012
Merged

Add minimum supported version information to database drivers#830
chdemko merged 5 commits intojoomla:stagingfrom
mbabker:JDatabase_minimum

Conversation

@mbabker
Copy link
Copy Markdown
Contributor

@mbabker mbabker commented Feb 6, 2012

This adds the minimum supported version information to the database drivers and a method to retrieve that string. The values currently used are MySQL 5.0.4 (the CMS minimum version at present) and SQL Server 2008 R2 (internal version 10.50.1600.1, per a discussion I had with Sudhi yesterday). I've also modified the getVersion method for SQL Server to just return the version string instead of the full array the sqlsrv_server_info method returns.

@joomla-jenkins
Copy link
Copy Markdown

Unit testing complete. There were 0 failures and 0 errors from 1993 tests and 11153 assertions.
Checkstyle analysis reported 165 warnings and 0 errors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can define this property static

@chdemko
Copy link
Copy Markdown
Contributor

chdemko commented Feb 6, 2012

We could add a method to JDatabase

public function isSupported()
{
    return version_compare($this->getVersion(), static::$dbMinimum) >= 0;
}

And define in JDatabase

abstract public function getVersion();

@mbabker
Copy link
Copy Markdown
Contributor Author

mbabker commented Feb 6, 2012

getVersion is already abstract in JDatabase, working the other changes right now.

@mbabker
Copy link
Copy Markdown
Contributor Author

mbabker commented Feb 6, 2012

Changes pushed up.

@joomla-jenkins
Copy link
Copy Markdown

Build triggered by changes to the head.

Unit testing complete. There were 0 failures and 0 errors from 1994 tests and 11154 assertions.
Checkstyle analysis reported 165 warnings and 0 errors.

chdemko added a commit that referenced this pull request Feb 7, 2012
Add minimum supported version information to database drivers
@chdemko chdemko merged commit 8716d39 into joomla:staging Feb 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants