Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MariaDB support #563

Closed
AlexeiCF opened this issue Nov 5, 2015 · 4 comments
Closed

MariaDB support #563

AlexeiCF opened this issue Nov 5, 2015 · 4 comments

Comments

@AlexeiCF
Copy link

AlexeiCF commented Nov 5, 2015

I'm using MariaDB JDBC connector. CFWheels doesn't support it, because it returns MariaDB as an adapter name. MariaDB is fully compatible with MySQL in terms of syntax but is actively developing and has some performance improvements.

I suggest adding support of MariaDB by doing the following:

  1. In wheels/Connection.cfc
    add line 44 to 47
else if (FindNoCase("MariaDB", loc.info.driver_name))
    {
        loc.adapterName = "MariaDB";
    }
  1. Copy-paste and rename wheels/model/adapters/MySQL.cfc -> MariaDB.cfc
@perdjurner
Copy link
Contributor

If you're just planning to copy and paste the MySQL.cfc without making any changes to it, then it might be better to just accept "MariaDB" as one of the driver names that loads the MySQL.cfc file.

@chapmandu
Copy link
Contributor

MariaDB and MySQL are beginning to diverge as of MySQL version 5.7. The MySQL adapter is currently compatible with Maria but this may change in future.

Would it be worth creating a separate adapter or just add Maria to the existing MySQL condition?

@chapmandu
Copy link
Contributor

Until there is a significant disparity between engines, the MySQL adapter should suffice.

@chapmandu chapmandu self-assigned this Aug 20, 2016
chapmandu added a commit that referenced this issue Aug 20, 2016
chapmandu added a commit that referenced this issue Aug 20, 2016
@chapmandu
Copy link
Contributor

91b1753
809d20a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants