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

Equal column names #37

Open
NCrashed opened this issue Mar 17, 2014 · 4 comments
Open

Equal column names #37

NCrashed opened this issue Mar 17, 2014 · 4 comments

Comments

@NCrashed
Copy link

Request: select now(), now()
Response:

{
"id": 3,
"result": [{
"now": ["2014-03-17T16:00:51.250808+04:00"]
}],
"jsonrpc": "2.0"
}

Should return JSON-RPC error if equal column names are detected.

@NCrashed NCrashed added this to the v0.1.3 milestone Mar 17, 2014
@denizzzka
Copy link
Contributor

JSON-RPC error? ошибка-то (два одинаковых имени) - на стороне сервера...

@NCrashed
Copy link
Author

Да, но из-за этого сервер не может ответить клиенту так, как от него ожидают. Можно расценивать одинаковые имена столбцов как логическую ошибку при проектировании апи к бд.

@denizzzka
Copy link
Contributor

всё-таки больше похоже на 5хх ошибку http.

какая ошибка планируется в формате json-rpc?

@ghost
Copy link

ghost commented Mar 22, 2014

Server error. Duplicate columns in response (-32000)

@NCrashed NCrashed modified the milestone: v0.1.3 Oct 16, 2014
@NCrashed NCrashed added the ready label Oct 16, 2014
@NCrashed NCrashed added this to the v0.3.0 milestone Oct 16, 2014
@NCrashed NCrashed self-assigned this Oct 16, 2014
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

2 participants