Check if fields are valid without forcing to lowercase
This allows to query fields like ``modelMag`` or ``psfMag``.
@@ -981,9 +981,11 @@ class SDSSClass(BaseQuery):
specobj_fields = specobj_defs
else:
for sql_field in fields:
- if sql_field.lower() in photoobj_all:
+ if (sql_field in photoobj_all
+ or sql_field.lower() in photoobj_all):
q_select_field.append('p.{0}'.format(sql_field))
- elif sql_field.lower() in specobj_all:
+ elif (sql_field in specobj_all
+ or sql_field.lower() in specobj_all):
q_select_field.append('s.{0}'.format(sql_field))
if photoobj_fields is not None:
