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

Exception thrown when mysql function name as a column name #2

Open
geshen opened this issue Aug 2, 2013 · 0 comments
Open

Exception thrown when mysql function name as a column name #2

geshen opened this issue Aug 2, 2013 · 0 comments

Comments

@geshen
Copy link

geshen commented Aug 2, 2013

For example:

match is a mysql function, if some table include match as its column, then start_createindex.sh will throw a exception that tells synctax error around
select count(distinct(match)) from table_name.

In fact, the correct syntax should be select count(distinct(match)) from table_name.

Solution may be:

  1. setup a rule that column name can't be any function name
  2. add necessary quote for this kind of column
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