Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1462

Closed
Open
Opened Sep 09, 2025 by 13718744546@13718744546

链存储的数据库类型有计划兼容OceanBase-MySQL么

【产品名称/功能模块】

链存储的数据库类型适配OceanBase-MySQL类型

【问题描述】

  • 1.在做信创适配项目时,需要使用OceanBase作为数据存储,配置了MySQL模式后,执行时报错: panic: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near 'Tables_in_xxx = ?' at line 2

goroutine 1 [running]: github.com/jinzhu/gorm.mysql.HasTable(0x1f86bc8, 0xc0001f3790, 0x1c84c85, 0x1c84c85, 0x9, 0xb) /go/pkg/mod/github.com/jinzhu/gorm@v1.9.16/dialect_mysql.go:180 +0x366 github.com/jinzhu/gorm.(*Scope).autoMigrate(0xc000642880, 0x1ad0a60) /go/pkg/mod/github.com/jinzhu/gorm@v1.9.16/scope.go:1268 +0xbb github.com/jinzhu/gorm.(*DB).AutoMigrate(0xc0001f3930, 0xc0000afd58, 0x14, 0x14, 0x40) /go/pkg/mod/github.com/jinzhu/gorm@v1.9.16/main.go:689 +0x97 management_backend/src/db/connection.InitDB(0xc0001f3930) /cm-mgmt/src/db/connection/connection.go:85 +0x787 management_backend/src/db/connection.InitDbConn(0xc00057e140) /cm-mgmt/src/db/connection/connection.go:68 +0x219 main.main() /cm-mgmt/src/main.go:44 +0xa5

【期望内容/功能改进】

  • 1.查了https://docs.chainmaker.org.cn/v2.3.6/html/tech/%E6%95%B0%E6%8D%AE%E5%AD%98%E5%82%A8.html文档目前没有说明支持OceanBase,希望能支持。

【联系方式】(选填)

可填写微信号,或者手机号,方便联系

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1462

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。