You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to generate with delphin process leads to a TSQLSyntaxError:
$ delphin process -g erg-2018-x86-64-0.9.31.dat -e -s mrs/ mrs-gen line 1 * from item where . ^TSQLSyntaxError: expected one of: '!' or 'not', (, a qualified identifier, a simple identifier
The problem is that the process code constructs a temporary profile and builds a TSQL where condition defaulting to '' if there is none. But the mkprof code does not consider '' to be no condition, only None, so it makes an empty where clause:
Trying to generate with
delphin process
leads to aTSQLSyntaxError
:The problem is that the
process
code constructs a temporary profile and builds a TSQL where condition defaulting to''
if there is none. But themkprof
code does not consider''
to be no condition, onlyNone
, so it makes an empty where clause:pydelphin/delphin/commands.py
Line 458 in fe91451
The workaround is to give an explicit where clause in the
--select
option, e.g.:$ delphin process -g erg-2018-x86-64-0.9.31.dat -e -s mrs/ mrs-gen --select='mrs where result-id=0'
Changing the
if where is None
part of the above code snippet toif not where
seems to fix the issue.The text was updated successfully, but these errors were encountered: