"CREATE TABLE IF NOT EXISTS" results in a false-positive error if table already exists
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- postgresql, typescript
调研方向
报告没有指出源文件或测试入口点。使用现有的 __EFMigrationsHistory 表复现 Entity Framework 迁移脚本,然后跟踪 PostgreSQL action 如何处理 NOTICE,并验证这一预期的 notice 不再导致构建失败。
由索引模型根据 Issue 内容生成。
描述
Take a script like the auto-generated migration history table creation by Entity Framework:
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
This results in a false error if the table actually already exists:
psql:/home/runner/work/somethingsomething.sql:5: NOTICE: relation "__EFMigrationsHistory" already exists, skipping
[...]
Error: Error occurred while running action:
Error: error in file: /home/runner/work/somethingsomething.sql
psql:/home/runner/work/somethingsomething.sql:5: NOTICE: relation "__EFMigrationsHistory" already exists, skipping
Which subsequently and wrongly fails the build.
- 主要语言
- TypeScript
- 星标
- 25
- 派生
- 22
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/postgresql 的其他 Issue
-
need-to-triage
难度 2/5 1-3 小时 新手友好度 68/100
Azure/postgresql#58 ·
-
need-to-triage
难度 3/5 1-2 天 新手友好度 35/100
Azure/postgresql#55 ·
-
need-to-triage
难度 5/5 一周以上 新手友好度 20/100
Azure/postgresql#53 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
Azure/postgresql#48 · 2 条评论 · 2 个 reaction ·
-
need-to-triage
难度 5/5 一周以上 新手友好度 15/100
Azure/postgresql#41 ·
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100