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

        Issue Links

          Activity

          Hide
          Sean Timm added a comment -

          adds escaping of backslash with a test case.

          Show
          Sean Timm added a comment - adds escaping of backslash with a test case.
          Hide
          Noble Paul added a comment -

          committed r908357
          Thanks Sean Timm

          Show
          Noble Paul added a comment - committed r908357 Thanks Sean Timm

            People

            • Assignee:
              Noble Paul
              Reporter:
              Sean Timm
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development