Byte strings in postgres aren't 0x... #1906

Merged
lunny merged 3 commits from zeripath/xorm:fix-bytea-representation-in-postgres into master 2021-05-09 07:10:00 +00:00
Contributor

Byte strings in postgres are actually E'\x...' not 0x...

This is part of the follow-up to #1872

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

Byte strings in postgres are actually E'\x...' not 0x... This is part of the follow-up to #1872 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added 1 commit 2021-05-08 19:03:37 +00:00
Byte strings in postgres aren't 0x...
Byte strings in postgres are actually E'\x...' not 0x...

This is part of the follow-up to #1872

Signed-off-by: Andrew Thornton <art27@cantab.net>
2d626529e5
Author
Contributor

This bug was present prior to #1872 but #1872 has revealed the issue.

This bug was present prior to #1872 but #1872 has revealed the issue.
zeripath added 1 commit 2021-05-08 20:05:41 +00:00
Merge branch 'master' into fix-bytea-representation-in-postgres
All checks were successful
continuous-integration/drone/pr Build is passing
a23bc6e5d9
zeripath added 1 commit 2021-05-08 20:39:06 +00:00
Unfortunately there is another bug with Maps
Signed-off-by: Andrew Thornton <art27@cantab.net>
All checks were successful
continuous-integration/drone/pr Build is passing
6bfa2972d4
Author
Contributor

Just noted another format value problem reflect.Map needs to be converted to json too.

Just noted another format value problem reflect.Map needs to be converted to json too.
Author
Contributor

And I really think that that is it!

And I really think that that is it!
lunny approved these changes 2021-05-09 07:09:56 +00:00
lunny merged commit d2f52eba64 into master 2021-05-09 07:10:00 +00:00
zeripath deleted branch fix-bytea-representation-in-postgres 2021-05-09 20:58:50 +00:00
Author
Contributor

Thanks @lunny I think we might now be able to finally have gitea dump do cross-database dumps properly.

Thanks @lunny I think we might now be able to finally have gitea dump do cross-database dumps properly.
Author
Contributor

~rIpPeR~ on discord has tried this PR on gitea 1.14.x and successfully converted their db from sqlite to postgres without issues.

~rIpPeR~ on discord has tried this PR on gitea 1.14.x and successfully converted their db from sqlite to postgres without issues.
lunny added this to the 1.1.0 milestone 2021-05-14 09:10:18 +00:00
Sign in to join this conversation.
No description provided.