forked from joomla/joomla-platform
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added two public method inside JDatabaseDriver:
- alterDbCharacterSet to change database's character set - createDatabase to create a new database AlterDbCharacterSet needs database name as parameter, createDatabase needs a JObject, similar to that used inside CMS' "initialise" function, and a bool to set UTF8 database's support. They use two protected method to obtain correct query in database's supported syntax: - getAlterDbCharacterSet - getCreateDatabaseQuery Protected method inside JDatabaseDriver return query for MySQL and MySQLi syntax, this commit contain also overridden version for PostgreSQL database. There are tests only for protected methods inside MySQL, MySQLi and PostgreSQL test classes.
- Loading branch information
Showing
5 changed files
with
319 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.