Escape string and blob results from dump more correctly #2091
Merged
lunny
merged 12 commits from zeripath/xorm:escape-results-from-dump
into master
6 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'zeripath/xorm:escape-results-from-dump'
Deleting a branch is permanent. It CANNOT be undone. Continue?
dumpTables currently badly handles BLOB and TEXT data containing control
characters:
MySQL will interpret and unescape string literals e.g.
\r
will becomecarriage return.
Postgres will not allow string literals to contain NUL nor will
SQLite so BLOBs will not dump correctly.
Schemas should not be set on the destination dump
MSSQL needs the N prefix to correctly ensure that UTF-8 data is
correctly transferred.
Signed-off-by: Andrew Thornton art27@cantab.net
I need to go through MSSQL and the other non-Gitea enabled DB types to check that blobs and control characters are being properly handled there too.
OK, so I think I've got this working now.
However, large blobs and large text fields will not be being handled correctly.
COPY
and an escaped format of its own designbut I dunno
cd36b112ae
into master 6 months agoReviewers
cd36b112ae
.