Bytebase DML Skips double quotes sometimes

未关闭
#18,885 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
mysql
领域
databases

调研方向

从 DML Change Request 流程开始,使用双引号和单引号的 UPDATE 示例,在 Aurora MySQL 8.0.40 上重现该问题。比较每个值的处理方式;完成标准是,双引号包围的值应保留为 “some string”,而不是变成 '0',同时现有的单引号行为仍然正常工作。

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

描述

Provide the Bytebase version you are using

3.12.2

Describe the bug

We discovered that Bytebase sometimes skips double quotes ““ strings in the SQL-Update field and when using single quote '' it works fine.

Aurora Mysql

Steps to reproduce

Connect to Aurora mysql
Go to DML Change REquest

Add:

update table_name set name = "some string" where id = 1234;

This is going to become automatically in db (name = '0')

Expected behavior

But if you use:

update table_name set name = 'some value' where id = 1234;

This works and the value of name is = 'some value'

Provide the database you are using

Aurora Mysql 8.0.40

Additional context

Premium Customer

主要语言
TypeScript
星标
14.8k
派生
1k
平均合并
6 小时 56 分钟
30 天内合并 PR
518

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

bytebase/bytebase 的其他 Issue

查看 bytebase/bytebase 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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