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

Function OCTET_LENGTH is not implemented but the documentation says yes. #11195

Closed
SunRunAway opened this issue Jul 11, 2019 · 1 comment · Fixed by #11451 or pingcap/parser#401
Closed
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

Function OCTET_LENGTH is not implemented but it is documented at https://pingcap.com/docs/dev/reference/sql/functions-and-operators/string-functions/

mysql> select OCTET_LENGTH(1);
  1. What did you expect to see?
mysql> select OCTET_LENGTH(1);
+-----------------+
| OCTET_LENGTH(1) |
+-----------------+
|               1 |
+-----------------+
1 row in set (0.00 sec)
  1. What did you see instead?
mysql> select OCTET_LENGTH(1);
ERROR 1305 (42000): FUNCTION octet_length does not exist
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
@SunRunAway SunRunAway added the type/bug The issue is confirmed as a bug. label Jul 11, 2019
@SunRunAway SunRunAway mentioned this issue Jul 11, 2019
54 tasks
@SunRunAway SunRunAway added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 12, 2019
@gaoxingliang
Copy link
Contributor

this issue seems not fixed yet on master branch. If so, I will look into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants