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

Generate error if field name specified in query is not exists [moved] #312

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Generate error if field name specified in query is not exists [moved] #312

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 312 moved from a Google Code project.
Added by 2011-04-21T19:16:04.000Z by Anton.A....@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v1.0rc8

Original description

<b>What steps will reproduce the problem?</b>
Using field in wrong case or non-existent field in query fails silently.


> select from cluster:people where lastname = 'Selvey';

0 item(s) found. Query executed in 0.0020 sec(s).

> select from cluster:people where LastName = 'Selvey';

---+--------+--------------------+--------------------+--------------------+--------------------
  #| REC ID |SEX                 |FIRSTNAME           |BIRTHDATE           |LASTNAME            
---+--------+--------------------+--------------------+--------------------+--------------------
  0|     7:0|0                   |Karen               |1988                |Selvey              
---+--------+--------------------+--------------------+--------------------+--------------------

or 

> select FirstName, LastName, BirthDate from cluster:people limit 1;

---+--------+--------------------+--------------------+--------------------
  #| REC ID |FIRSTNAME           |LASTNAME            |BIRTHDATE           
---+--------+--------------------+--------------------+--------------------
  0|   -1:-1|Karen               |Selvey              |null                
---+--------+--------------------+--------------------+--------------------

1 item(s) found. Query executed in 0.0070 sec(s).

> select FirstName, LastName, birthDate from cluster:people limit 1;

---+--------+--------------------+--------------------+--------------------
  #| REC ID |FIRSTNAME           |BIRTHDATE           |LASTNAME            
---+--------+--------------------+--------------------+--------------------
  0|   -1:-1|Karen               |1988                |Selvey              
---+--------+--------------------+--------------------+--------------------

1 item(s) found. Query executed in 0.015 sec(s).



<b>What is the expected output? What do you see instead?</b>
I expect that error would raised &quot;No such field&quot;

<b>Please use labels and text to provide additional information.</b>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant