Code review comment for lp:~zorba-coders/zorba/new-jsoniq

Revision history for this message
Chris Hillery (ceejatec) wrote :

Ghislain - it seems to work if you specify the option on the command line:

% zorba --option '{http://www.zorba-xquery.com/options/features}enable=common-language' -q 'jsoniq version "1.0"; { "foo" : "bar" }'
<.>:1,2: Zorba static warning [zwarn:ZWST0009]: feature not supported by the common language grammar: version declaration; raised at /home/ceej/zo/src/src/compiler/translator/translator.cpp:2495
{ "foo" : "bar" }

It kind of makes sense to me that declaring the option inside the query itself doesn't retro-actively jump back and ensure that you didn't do anything bad before the option itself was parsed.

« Back to merge proposal