with string > 4000 characters fails against DM8(达梦数据库)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 18.4k
- Forks
- 3.7k
- Avg merge
- 5h 8m
- Merged PRs (30d)
- 1
Description
Writing a string longer than 4000 bytes to an text class property fails with an obscure error (index size -1). Writing a string of 3999 bytes is fine.
I know it can be solved by DynamicParameters(https://github.com/DapperLib/Dapper/issues/212)
But there are a lot of INSERT fields and a lot of code,Are there other better solutions?
Can I set sieze equal to 0 ,Or use string length
向文本类属性写入超过4000字节的字符串将失败,并出现一个模糊错误(索引大小-1)。写入3999字节的字符串是可以的。
我知道它可以通过DynamicParameters(https://github.com/DapperLib/Dapper/issues/212)解决
但是INSERT时有很多字段,会产生很多代码,有没有更好的解决方案?
我可以设置size等于0,或者让它等于值的长度吗?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the DynamicParameters discussion linked from the issue and the INSERT parameter handling for text properties against DM8. Done should be a confirmed, documented approach for writing strings over 4000 bytes without requiring repetitive parameter code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, sql
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100