Results 1 to 6 of 6

Thread: I have a MySQL error 1064 in syntax ?!

  1. #1
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default I have a MySQL error 1064 in syntax ?!

    Hi, I get the following error when i want to repair my database;

    I create a new field in my a package called "Complaints". This new field is called "invoice_amount". When i deploy my package and i try to quick rebuild repair i get this message;

    Executing repair query: Query Failed:ALTER TABLE comp_complaints_projecten add column invoice_amount float(18,2,2) NULL::MySQL error 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 '2) NULL' at line 1

    Does anybody knows how i can fix this error? Thankss

    Much Appreciate
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: I have a MySQL error 1064 in syntax ?!

    Hi Jordy

    It is related to a sugar bug.
    Sometimes sugar adds a second precision number on query which generate a sql error.
    So go to Admin -> Repair -> Quick Repair and Rebuild and when the sql query text area is displayed remove the second precision number.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: I have a MySQL error 1064 in syntax ?!

    Hi Andopes,

    Great, it worked! Thanks a lot, this will spare me much time

    I appreciate all your help
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  4. #4
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default Re: I have a MySQL error 1064 in syntax ?!

    Quote Originally Posted by andopes View Post
    Hi Jordy

    It is related to a sugar bug.
    Sometimes sugar adds a second precision number on query which generate a sql error.
    So go to Admin -> Repair -> Quick Repair and Rebuild and when the sql query text area is displayed remove the second precision number.

    Cheers
    Is there a fix for that bug?

  5. #5
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default Re: I have a MySQL error 1064 in syntax ?!

    Fixed Bugs in 5.2.0g
    Bug 28463
    When using the MySQL database, setting the precision for a decimal field for a custom module results in a SQL error.

  6. #6
    KACP is offline Senior Member
    Join Date
    Aug 2008
    Posts
    21

    Angry Re: I have a MySQL error 1064 in syntax ?!

    Quote Originally Posted by andopes View Post

    It is related to a sugar bug.
    Sometimes sugar adds a second precision number on query which generate a sql error.
    So go to Admin -> Repair -> Quick Repair and Rebuild and when the sql query text area is displayed remove the second precision number.

    Cheers
    Andopes -- I'm not clear where you can remove second precision number within Quick Repair. What am I missing? I have the same issue.

    <<Error filling in additional detail fields: Query Failed:SELECT name , assigned_user_id parent_name_owner from accounts where id = '#BO6 4U6&\'::MySQL error 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 ''#BO6 4U6&\'' at line 1>>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MySQL error 1064
    By PCODIV2 in forum Help
    Replies: 0
    Last Post: 2008-10-06, 12:58 PM
  2. Mysql Error 1064 Help
    By kinshibuya in forum Help
    Replies: 1
    Last Post: 2008-08-06, 07:04 PM
  3. MySQL error 1064
    By Suworoff in forum Help
    Replies: 3
    Last Post: 2008-03-26, 01:24 PM
  4. MySql error 1064
    By Tavares in forum Developer Help
    Replies: 8
    Last Post: 2007-03-09, 01:06 PM

Bookmarks

Posting Permissions

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