[英]OrientDB query works on Studio but not with PyOrient
這適用於 OrientDB Studio( eset
是一個 EmbeddedSet):
UPDATE #37:0 SET eset = eset || ["foo", "bar"];
但不是當我使用 PyOrient 時:
command = 'UPDATE #37:0 SET eset = eset || ["foo", "bar"];'
client.command(command)
>>> pyorient.exceptions.PyOrientSQLParsingException: com.orientechnologies.orient.core.sql.OCommandSQLParsingException - Error on parsing command: Invalid keyword ||.
顯然它也發生在 Java: https : //community.orientdb.org/t/linkset-manipulation/171
有什么辦法可以重寫該查詢以擺脫||
部分? 我無法對文檔做出正面或反面。
PyOrient 仍然使用不支持||
的遺留 SQL 執行器操作員。 我建議使用以下(不完全等效,但它應該工作)
UPDATE #37:0 ADD eset = ["foo", "bar"];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.