We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
访问数据库时,使用Model.thenUpdate方法,第二个参数是where,但数据库列名是中文的,如:{姓名:'张守恒'},报错为INVALID_WHERE_CONDITION_KEY
Model.thenUpdate
where
INVALID_WHERE_CONDITION_KEY
OS Platform: Cent OS7 mysql
Cent OS7
mysql
Node.js Version: 14+
14+
ThinkJS Version: 3
3
// your code here
// your error message here
// your detail description
The text was updated successfully, but these errors were encountered:
https://github.com/thinkjs/think-model-abstract/blob/master/lib/parser.js#L176 因为安全问题我们做了 key 的校验,目前是限定了英文数字…暂时不支持中文的
Sorry, something went wrong.
No branches or pull requests
DESC
访问数据库时,使用
Model.thenUpdate
方法,第二个参数是where
,但数据库列名是中文的,如:{姓名:'张守恒'},报错为INVALID_WHERE_CONDITION_KEY
ENV
OS Platform:
Cent OS7
mysql
Node.js Version:
14+
ThinkJS Version:
3
code
// your code here
error message
INVALID_WHERE_CONDITION_KEY
more description
// your detail description
The text was updated successfully, but these errors were encountered: