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

Fix confusing error when no arguments are passed to a query with named params #208

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

elprans
Copy link
Member

@elprans elprans commented Jul 23, 2021

Currently, if one attempts to execute a query with named parameters
without passing any arguments at all, they'll get a confusing expected named arguments, got positional arguments. Fix this to have the server
issue the appropriate error about argument counts instead. See
edgedb/edgedb#1427.

…d params

Currently, if one attempts to execute a query with named parameters
without passing any arguments at all, they'll get a confusing `expected
named arguments, got positional arguments`.  Fix this to have the server
issue the appropriate error about argument counts instead.  See
edgedb/edgedb#1427.
Copy link
Member

@fantix fantix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elprans elprans merged commit 8e0b334 into master Jul 27, 2021
@elprans elprans deleted the args branch July 27, 2021 19:34
elprans added a commit that referenced this pull request Aug 7, 2021
Fixes
=====

* Fix failing tests regarding --help (#207)
  (by @fantix in 956a2ca for #207)

* Fix confusing error when no arguments are passed to a query with named params (#208)
  (by @elprans in 8e0b334 for #208)

* Add Python 3.10 compatibility (#209)
  (by @elprans in 3472f17 for #209)

* Fix asyncio SSL unclosed warning (#210)
  (by @fantix in d718839 for #210)

* More reliable transport double-closing
  (by @fantix in 337b779)

* Rename `query_one` to `query_single`
  (by @fmoor in f6900b0)
@elprans elprans mentioned this pull request Aug 7, 2021
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

Successfully merging this pull request may close these issues.

3 participants