Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4743

import of csv file with "not" as fieldname gives DB error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None

      Description

      It's trivial, but it can be annoying if encountered and it's easy to fix, just add an extra _.
      It might also occur with other reserved MySQL words.

      Sorry. A non-recoverable error has occurred.

      DB Error: syntax error

      Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not text, contact text, phone_ text, email text, add' at line 1, 1064"
      #2

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              guaka Kasper Souren
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: