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 23
    • Issues 23
    • 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
  • #364

Closed
Open
Opened Sep 22, 2022 by LIU HUAJIN@yjwxfq

[BUG] SQL合约插入数据中报错表不存在(找错了库)

v2.2.1版本下tinygo的sql合约opproof部署(gasm)初始化时,创建的是带合约名后缀的库,initContract中建的表file_opproof是在合约库下面建的.

但调用合约的其它方法执行sql插入时却报表名不存在,却是从链的库下面找表!

复现方式: 世界状态数据库采用mysql模式配置 GASM部署附件的opproof.wasm合约文件 调用合约的save方法,传入的参数示例"file_name":"file_12323213","file_hash":"hash_11112222","time":"1663826250"

mysql的库和表报错日志opproof.wasmopproof.go

Edited Sep 22, 2022 by LIU HUAJIN
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#364

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