[Enhancement]: Support the default `GO` batch separator for MSSQL

未关闭
#11,231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
database

调研方向

从链接的行开始查看 ScriptUtils.java,并检查 MSSQLServer 如何使用脚本分隔符。确定如何在不要求预处理的情况下支持默认的 GO 批处理分隔符,然后验证兼容 sqlcmd 的脚本是否按预期通过 MSSQLServer 模块执行。

由索引模型根据 Issue 内容生成。

描述

modules/mysql type/enhancement
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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

testcontainers/testcontainers-java 的其他 Issue

查看 testcontainers/testcontainers-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。