已开启
Add Diesel compatibility tests for openGauss #108
Rourou2285创建于 8月25日
Add Diesel compatibility tests for openGauss #108
已开启
Rourou2285创建于 8月25日
Rourou2285
Rourou2285
8月25日

新增 Diesel ORM 连接 openGauss B 兼容模式数据库的完整兼容性测试示例(Diesel 2.3.12),基于 openGauss master 与 dolphin(含 MySQL 大包多 payload 重组修复)验证。

测试覆盖

  • 连接与 mysql_native_password 认证
  • CRUD、批量操作、LAST_INSERT_ID
  • 手动/自动/嵌套事务、多语句
  • 基础类型、日期时间、JSON、BLOB、DECIMAL、LONGTEXT
  • 过滤/排序/分页/聚合/JOIN/子查询
  • COM_STMT_PREPARE、语句复用、参数绑定
  • Diesel CLI 与嵌入式迁移
  • r2d2 连接池、并发、错误映射
  • Diesel typed DSL(QueryableByName、associations、for_update、typed Json)

测试结果

openGauss 7.0.0 (master) + dolphin master,共 76 例,基于 fresh-schema 重复执行:

PASS: 75
FAIL: 0
EXPECTED_FAIL: 1

已知限制

唯一 EXPECTED_FAIL 为 T8.2 diesel print-schema:

  • dolphin 对 VARCHAR 内省返回 PostgreSQL 原生类型名 character varying;
  • diesel_cli(MySQL backend)不识别该类型名,报 Unsupported type: character varying 并中止;
  • 该限制在 RC3 与 master 均存在,非回归,属 Dolphin↔Diesel 长期类型名不兼容。

注:原为 EXPECTED_FAIL 的 >16MB 多 payload 大包(T13.1)在 openGauss master 已修复(!2538 / commit fcd035ce),现为 PASS。

相关 Issue

Issue #46:B 库 B 协议适配 Rust ORM 框架 Diesel

likedislike
合并受阻
Rourou2285Rourou2285
8月25日 创建了 pull request,commit 2ffdb192
opengauss_botopengauss_bot成员
8月25日 添加了label:sig/Infra
opengauss_bot
opengauss_bot成员
8月25日 评论:

Welcome To openGauss Community

Hey @Rourou2285 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Infra ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @ailoooong, @gzbang, @libiao2024, @zhangxubo .

likedislike
opengauss_botopengauss_bot成员
8月25日 添加了label:stat/needs-squash
opengauss_botopengauss_bot成员
8月25日 添加了label:opengauss-cla/yes
此处折叠了58条消息 查看更多
Rourou2285Rourou2285
22 天前 预合并成功(commit_id: 8cd573b8122e55e27bbbac990ba1eb3ed205fc45)
opengauss_botopengauss_bot成员
22 天前 删除了label:opengauss-cla/yes
opengauss_botopengauss_bot成员
22 天前 添加了label:stat/needs-squash
opengauss_botopengauss_bot成员
22 天前 添加了label:opengauss-cla/yes
opengauss_bot
opengauss_bot成员
22 天前 评论:

CLA Signature Pass

Rourou2285, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike