Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: mysql + teach 下对问答的某个项进行修改会将其他项内容全部清除 #376

Closed
idlist opened this issue Sep 3, 2021 · 1 comment
Labels
bug BUG

Comments

@idlist
Copy link
Contributor

idlist commented Sep 3, 2021

Describe the bug

首先,在不做更改的情况下,对问答的生效范围进行更改(即下图中的 ->20 -E
image
会直接报这个错误
logq

依据报错信息更改 dialogue 表为下表
log2
然后进行如下操作,可以看见终端没有报错,问答的生效范围也修改了,但是问答的其他信息全部被清空了,包括问题、答案和各种概率等等
image2

Steps to reproduce

见上面

Expected behavior

当然是不报错,而且能正常单独更改生效范围了!

Screenshots

No response

Versions

  • OS: Linux
  • Platform: all
  • Node version: 16.1.0
  • Koishi version: 3.14.1
  • plugin-teach version: 2.3.0
  • plugin-mysql version: 3.6.1

Additional context

No response

@idlist idlist added the bug BUG label Sep 3, 2021
@idlist idlist changed the title Bug: mysql + teach 下对问答的生效范围进行修改的行为有问题 Bug: mysql + teach 下对问答进行修改的行为有问题 Sep 4, 2021
@idlist idlist changed the title Bug: mysql + teach 下对问答进行修改的行为有问题 Bug: mysql + teach 下对问答的某个项进行修改会将其他项内容全部清除 Sep 4, 2021
@idlist
Copy link
Contributor Author

idlist commented Sep 4, 2021

之后测试了一下,改任意一个内容都会导致其他内容消失。

@shigma shigma closed this as completed in 6e2aa86 Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

1 participant