Fix issue with byte representation in MSSQL #1957

Merged
lunny merged 2 commits from zeripath/xorm:fix-missing-string-if-not-blob into master 2021-07-23 01:01:50 +00:00
Contributor

There is a missing cast to string in BuildUpdates which leads to a failure
to call str2ucs and ucs2str for converts on MSSQL.

Ref: https://github.com/go-gitea/gitea/issues/16252

Signed-off-by: Andrew Thornton art27@cantab.net

There is a missing cast to string in BuildUpdates which leads to a failure to call str2ucs and ucs2str for converts on MSSQL. Ref: https://github.com/go-gitea/gitea/issues/16252 Signed-off-by: Andrew Thornton <art27@cantab.net>
Owner

@zeripath Could you add a test with this?

@zeripath Could you add a test with this?
Owner

Please resolve the conflict.

Please resolve the conflict.
zeripath force-pushed fix-missing-string-if-not-blob from a5c4676eb2 to 76d91bc218 2021-07-20 20:20:17 +00:00 Compare
Author
Contributor

So in terms of the test I don't understand why it isn't already failing in TestConversion.

Have you been able to figure out a testcase?

So in terms of the test I don't understand why it isn't already failing in TestConversion. Have you been able to figure out a testcase?
zeripath added 1 commit 2021-07-22 12:02:02 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
d5142257f1
Merge branch 'master' into fix-missing-string-if-not-blob
Owner

So in terms of the test I don't understand why it isn't already failing in TestConversion.

Have you been able to figure out a testcase?

It seems both bytes and string will pass the tests.

> So in terms of the test I don't understand why it isn't already failing in TestConversion. > > Have you been able to figure out a testcase? It seems both bytes and string will pass the tests.
Author
Contributor

But the problem is very much real on Gitea so I'm uncertain as to why it's so easy to reproduce there but not here.

But the problem is very much real on Gitea so I'm uncertain as to why it's so easy to reproduce there but not here.
Owner

If it can resolve gitea's problem and CI PASS. Let's merge it.

If it can resolve gitea's problem and CI PASS. Let's merge it.
lunny merged commit d973423802 into master 2021-07-23 01:01:50 +00:00
zeripath deleted branch fix-missing-string-if-not-blob 2021-07-23 07:42:45 +00:00
Sign in to join this conversation.
No description provided.