Batch SQL Command Fails
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- sql
调研方向
首先,将所引用的 3.0.x 文档中的批量 SQL 示例与此处显示的命令和解析器错误进行比较。如果有可用的相关 OrientDB 设置,请重现该命令,然后验证文档或报告的语法是否不正确。当文档中的示例与受支持的行为一致,或清楚地说明该限制时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I wanted to insert a record into Another_Class if Check_Class exists and I wrote the following batch SQL command but it failed with the error below. I have used the next line character (\n) around the IF as required in doc 3.0.x but it is still not working.
session.command("LET $a = (SELECT from V WHERE @class = 'Check_Class' limit 1); \n if($a.size() = 0) { \n INSERT INTO CLASS Another_Class SET name = 'test'; \n }");
xxxxxxxxxxx ERROR xxxxxxxxxxxxxxxxxxxxxx
Exception in thread "main" com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query:
LET $a = (SELECT from V WHERE @class = 'Check_Class' limit 1);
if($a.size() = 0) {
^
INSERT INTO CLASS Another_Class SET name = 'test';
}
Encountered " "if "" at line 2, column 2.
Was expecting:
- 主要语言
- CSS
- 星标
- 59
- 派生
- 164
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
orientechnologies/orientdb-docs 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 1/5 1 小时以内 新手友好度 50/100
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
orientechnologies/orientdb-docs#387 · 1 条评论 ·
查看 orientechnologies/orientdb-docs 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 90/100
ethereum/execution-apis#1017 ·
维护者通常 3 天内回复
-
[Docs] CONTRIBUTING points the Backend Remake milestone at a branch that does not exist可能已有人在做 @franpts2 今天认领。 未关闭docs
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 3 天内回复
-
postgresql-rules / queue-rules: implicit KEY SHARE before a parent key update, and job self-overlap未关闭
难度 2/5 1-3 小时 新手友好度 82/100
jonathanong/no-mistakes#3879 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
pearu/agent-sandbox#451 ·
维护者通常 1 天内回复