https://bugzilla.wikimedia.org/show_bug.cgi?id=19883

           Summary: Errors dumping into PostgreSQL database
           Product: mwdumper
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: need-review, patch, postgresql
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=6381)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=6381)
Move the sqlEscape to MySQLTraits and PostgreSQLTraits + insert anonymous
contributor when none is provided in the xml

When dumping a wikinews dump into a PostgreSQL database I encountered several
errors concerning mostly the escaping of the strings. I propose a patch in
attachment that move the sqlEscape(String) into MySQLTraits and PostgreSQL
traits. However a better way would be to use PreparedStatement capabilities of
jdbc...

Another error I encountered concerned the presence of a non existing
contributor into the XML file getting the whole dump to fail, I instead propose
(in the same patch in attachment) to use an anonymous contributor to prevent
failing.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to