Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Inconsistent Errors using backticks #447

Closed
theodesp opened this issue Oct 11, 2018 · 3 comments
Closed

Inconsistent Errors using backticks #447

theodesp opened this issue Oct 11, 2018 · 3 comments

Comments

@theodesp
Copy link
Contributor

theodesp commented Oct 11, 2018

Currently, if you use backticks in the wrong place you get a different error code. For example:

Mysql-8

mysql> select ceil(`1.2`);
ERROR 1054 (42S22): Unknown column '1.2' in 'field list'

go-mysql-server

mysql> select ceil (`8.88`);
ERROR 1105 (HY000): unknown error: column "8.88" could not be found in any table in scope
@erizocosmico
Copy link
Contributor

Yeah, errors in go-mysql-server are not compatible with MySQL's. That is by design, for now.

@ajnavarro what should we do with this?

@ajnavarro
Copy link
Contributor

ajnavarro commented Oct 16, 2018

We try to emulate MySQL behavior as much as possible. If some statement with specific parameters throws an error, we should throw an error too. But we cannot ensure that the error will be the same than in MySQL always.

@erizocosmico
Copy link
Contributor

Shall we close this issue, then?

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

No branches or pull requests

3 participants