Escape string and blob results from dump more correctly #2091

Merged
lunny merged 12 commits from zeripath/xorm:escape-results-from-dump into master 2022-01-07 08:04:02 +00:00

12 Commits

Author SHA1 Message Date
7e7ce32d82 Merge branch 'master' into escape-results-from-dump
All checks were successful
continuous-integration/drone/pr Build is passing
2022-01-07 11:29:41 +08:00
1189a63c98
handle oracle
All checks were successful
continuous-integration/drone/pr Build is passing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-06 05:02:14 +00:00
9433f34337
Add some more testcases for dump
All checks were successful
continuous-integration/drone/pr Build is passing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-06 04:26:52 +00:00
83817e383e
handle mssql properly
All checks were successful
continuous-integration/drone/pr Build is passing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-05 23:25:16 +00:00
d03d953a3f
handle dameng
All checks were successful
continuous-integration/drone/pr Build is passing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-05 23:02:34 +00:00
31415fe666
Merge remote-tracking branch 'origin/master' into escape-results-from-dump
All checks were successful
continuous-integration/drone/pr Build is passing
2022-01-05 20:42:29 +00:00
47f1bd022f
attempt to fix cockroach
All checks were successful
continuous-integration/drone/pr Build is passing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-05 11:03:57 +00:00
ec13261367
fix npe
Some checks failed
continuous-integration/drone/pr Build is failing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-05 10:23:52 +00:00
7f471d653d
attempt to placae test
Some checks failed
continuous-integration/drone/pr Build is failing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-04 21:37:43 +00:00
129043e50d
oops
Some checks failed
continuous-integration/drone/pr Build is failing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-04 19:42:20 +00:00
b772658c0b
On postgres put the schema in if it is set
Some checks failed
continuous-integration/drone/pr Build is failing
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-04 18:34:57 +00:00
7dbf688ae9
Escape string and blob results from dump more correctly
Some checks failed
continuous-integration/drone/pr Build is failing
dumpTables currently badly handles BLOB and TEXT data containing control
characters:

* MySQL will interpret and unescape string literals e.g.`\r` will become
carriage 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>
2022-01-03 21:56:29 +00:00