Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default SQL syntax error 1064

    During an install, I am stopped with the message:

    1064 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 'Sierra Designupgrade_exceptions' at line 1
    in:
    [DROP TABLE IF EXISTS High Sierra Designupgrade_exceptions;]

    Help! I haven't a clue as to how to proceed. My host (FutureQuest) has many installations of Zen Cart running, but I'm a total novice with SQL. Where is this syntax error located and how do I correct it?

  2. #2
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

  3. #3
    Join Date
    Sep 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: SQL syntax error 1064

    Thanks to the support people at my host (FutureQuest) I found that Zen Cart blithely accepts entries that are to be used as SQL variable names with embedded blanks - e.g., I responded with the name 'High Sierra Design', and the install process generated a variable named 'High Sierra Designupgrade', minus quotes.
    going back and entering highsierradesign made it much more palatable to SQL.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: SQL syntax error 1064

    Good point. It has been trapping against slashes and dots, but not spaces.
    This will be fixed in the next release.
    Thanks.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. 1064 SQL syntax error
    By perkiekat in forum General Questions
    Replies: 4
    Last Post: 12 Dec 2009, 09:13 PM
  3. 1064 error sql syntax
    By pjgscrap in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2009, 05:04 PM
  4. 1064 sql syntax error
    By jpierre in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 7 Sep 2006, 01:03 PM
  5. 1064 SQL syntax error
    By swmart77 in forum General Questions
    Replies: 3
    Last Post: 16 Jul 2006, 08:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg