1
我正在使用.net客戶端的聚合存儲過程lumenize https://github.com/lmaccherone/documentdb-lumenize,我在filterquery內容中遇到了麻煩。DocumentDB存儲過程Lumenize
如何簡單地將字母數字值傳遞給filterquery查詢?
string configString = @"{
cubeConfig: {
groupBy: 'Modele',
field: 'Distance',
f: 'sum'
},
filterQuery: 'SELECT * FROM Modele WHERE ModeleGUID = ''0b93def1-ccd7-fc35-0475-b47c89137c3f'' '}";
每個測試讓我在filterquery :(解析錯誤
Error: One or more errors occurred.
Message: After parsing a value an unexpected character was encountered:
'. Path 'filterQuery', line 7, position 63.
End of demo, press any key to exit.
感謝
我懷疑它與你的過濾器字符串中的多個單引號有關。我看起來不錯。你有沒有嘗試過逃脫引號('\'')? –
是的!我是愚蠢的......謝謝! – hervema
很高興我能幫到你。我發佈了一個答案,以便可以正確解決。 –