Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1767

DataImportHandler: dataimporter.functions.escapeSql() does not escape backslash character

Details

    Description

      MySQL requires that the backslash and the quote character used to quote the string in the query be escaped. Currently only single and double quotes are escaped.

      See: http://dev.mysql.com/doc/refman/4.1/en/mysql-real-escape-string.html

      Attachments

        1. SOLR-1767.patch
          2 kB
          Sean Timm

        Issue Links

          Activity

            timmsc Sean Timm added a comment -

            adds escaping of backslash with a test case.

            timmsc Sean Timm added a comment - adds escaping of backslash with a test case.
            noble.paul Noble Paul added a comment -

            committed r908357
            Thanks Sean Timm

            noble.paul Noble Paul added a comment - committed r908357 Thanks Sean Timm

            People

              noble.paul Noble Paul
              timmsc Sean Timm
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: