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
你好, 在BindParams.hpp中, 对于char*和const char*的BindValue时,使用sqlite3_bind_text传递数据长度参数使用了strlen(t) + 1,请问这里为什么要+1?如果+1的话,在保存时会多保存一个\0,是否是有误? 而且这样会跟std::string的那个函数生成的结果 不一样。
char*
const char*
BindValue
sqlite3_bind_text
strlen(t) + 1
\0
std::string
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你好,
在BindParams.hpp中, 对于
char*
和const char*
的BindValue
时,使用sqlite3_bind_text
传递数据长度参数使用了strlen(t) + 1
,请问这里为什么要+1?如果+1的话,在保存时会多保存一个\0
,是否是有误?而且这样会跟
std::string
的那个函数生成的结果 不一样。The text was updated successfully, but these errors were encountered: