如何处理RSQL的投影列表值中的空间 [英] How to handle space in projection list value of RSQL
本文介绍了如何处理RSQL的投影列表值中的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一种情况,我需要使用RSQL
过滤数据.
我需要使用$projection=field_list=in=(FAMILY Id)
来获取特定的列,但是由于"Family Id"中的列具有空格,因此将其抛出以下错误.
I have a scenario where I need filter data using RSQL
.
I need to get specific columns hence using $projection=field_list=in=(FAMILY Id)
But as the column here "FAMILY Id" has a space , its throwing below error.
cz.jirutka.rsql.parser.ParseException: Encountered " <UNRESERVED_STR> "Id "" at line 1, column 23.
期待以下一项:
<OR> ...
")" ...
如果我在单引号中传递相同的内容,它将像$projection=field_list=in=('FAMILY Id')
一样工作,但是还有其他方法可以处理相同的内容,因为我还有其他几种以相同的方式在单引号中包含相同内容的方案不起作用.
If I pass the same in single quotes it would work , like $projection=field_list=in=('FAMILY Id')
, but is there any other way to handle the same , as i have few more scenarios in the similar way where putting the same in single quotes too does not work.
谢谢.
〜Shyam
推荐答案
查看全文