[Enhancement]: Support the default `GO` batch separator for MSSQL
还没有人认领这个 Issue。
评估
调研方向
从链接的行开始查看 ScriptUtils.java,并检查 MSSQLServer 如何使用脚本分隔符。确定如何在不要求预处理的情况下支持默认的 GO 批处理分隔符,然后验证兼容 sqlcmd 的脚本是否按预期通过 MSSQLServer 模块执行。
由索引模型根据 Issue 内容生成。
描述
Module
MSSQLServer
Proposal
Currently the separator is hardcoded here: https://github.com/testcontainers/testcontainers-java/blob/2b53c476a249b58e7f7d827f20dcdb7e6fdf4d0e/modules/database-commons/src/main/java/org/testcontainers/ext/ScriptUtils.java#L232
But almost all MSSQL tooling expects the batch separator to be GO, causing issues when passing the same scripts that can be used with sqlcmd into test containers and currently there's no way around it other than manually preprocessing the scripts beforehand.
- 主要语言
- Java
- 星标
- 8.7k
- 派生
- 1.9k
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 9
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
testcontainers/testcontainers-java 的其他 Issue
-
type/bug
难度 2/5 1-3 小时 新手友好度 78/100
testcontainers/testcontainers-java#11997 · 1 条评论 ·
-
[Enhancement]: Document why singleton containers are required under Spring's test context caching 未关闭type/enhancement
难度 1/5 1 小时以内 新手友好度 85/100
testcontainers/testcontainers-java#11967 ·
-
type/bug
难度 2/5 1-3 小时 新手友好度 78/100
testcontainers/testcontainers-java#11941 ·
-
type/bug
难度 2/5 1-3 小时 新手友好度 74/100
testcontainers/testcontainers-java#11829 · 1 条评论 ·
-
type/enhancement
难度 2/5 1-3 小时 新手友好度 65/100
testcontainers/testcontainers-java#11578 ·
查看 testcontainers/testcontainers-java 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
1.0.0-alpha2 Type/Improvement
难度 2/5 1-3 小时 新手友好度 68/100
wso2/dpdp-accelerator#272 ·
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
apache/rocketmq-dashboard#4860 · 1 条评论 ·
-
agent-audit bug
难度 2/5 1-3 小时 新手友好度 88/100
Vault-Web/cloud-page#144 ·