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

pedantmysql doesn't work with rails dbconsole #16

Open
timothysmith0609 opened this issue Jan 17, 2018 · 0 comments
Open

pedantmysql doesn't work with rails dbconsole #16

timothysmith0609 opened this issue Jan 17, 2018 · 0 comments

Comments

@timothysmith0609
Copy link

While setting up cod-app for cloud, I realized that rails dbconsole would fail with unknown command-line client for #{database_name}.

I dug through the dbconsole source and attached a few puts to the dbconsole in cluster and observed the following output:
screen shot 2018-01-17 at 12 37 20 pm

The regex match on the case predicate in dbconsole.rb will always fail since when /^(jdbc)?mysql/ begins with pedant, not mysql.

Not sure if this is worthy of a fix since I don't know how often rails dbconsole gets used, but a simple solution seems to be simply renaming the adapter to mysql_pedant.

cc @casperisfine, @goldenson

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

No branches or pull requests

1 participant