Results 1 to 5 of 5

Thread: 4.5 GA - SQL errors

  1. #1
    panoptech is offline Junior Member
    Join Date
    Sep 2006
    Posts
    3

    Unhappy 4.5 GA - SQL errors

    Have just completed vanilla install of 4.5 - all went fine - have gone to import accounts,contacts then opportunities via CSV all of which seemd to work correctly I now get the following when i look at any opportunity:


    Error retrieving Opportunity list: Query Failed SELECT meetings.id , meetings.name , meetings.status , CONCAT(IFNULL(contacts.first_name,''),' ',IFNULL(contacts.last_name,'')) contact_name, ' ' contact_name_owner , ' ' contact_name_mod , meetings.date_start , jt1.user_name assigned_user_name, meetings.time_start , meetings.assigned_user_id , 'meetings' panel_name FROM meetings AND contacts.deleted=0 AND jt1.deleted=0 where ((meetings.status='Planned')) AND meetings.deleted=0 ) UNION ALL ( SELECT tasks.id , tasks.name , tasks.status , CONCAT(IFNULL(contacts.first_name,''),' ',IFNULL(contacts.last_name,'')) contact_name, tasks.date_due as date_start , jt1.user_name assigned_user_name, tasks.time_due as time_start , tasks.assigned_user_id , 'tasks' panel_name FROM tasks AND contacts.deleted=0 AND jt1.deleted=0 where ((tasks.status='Not Started' OR tasks.status='In Progress' OR tasks.status='Pending Input')) AND tasks.deleted=0 ) UNION ALL ( SELECT calls.id , calls.name , calls.status , CONCAT(IFNULL(contacts.first_name,''),' ',IFNULL(contacts.last_name,'')) contact_name, ' ' contact_name_owner , ' ' contact_name_mod , calls.date_start , jt1.user_name assigned_user_name, calls.time_start , calls.assigned_user_id , 'calls' panel_name FROM calls AND contacts.deleted=0 AND jt1.deleted=0 where ((calls.status='Planned')) AND calls.deleted=0 ) ORDER BY date_start desc LIMIT 0,10::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 'AND contacts.deleted=0 AND jt1.deleted=0 where ((meetings.status='Planned')) AN' at line 1

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: 4.5 GA - SQL errors

    I see that you say 'Have just completed vanilla install of 4.5' and I take that to mean that you have loaded NO modules. Also I take this to mean that this was a full install and not an upgrade. Am I right on both counts?

    Your problem is a malformed select query which isn't happening on any of my 4.5GA installs. We need to dig a little deep and find out what the difference between my install and yours.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    panoptech is offline Junior Member
    Join Date
    Sep 2006
    Posts
    3

    Default Re: 4.5 GA - SQL errors

    Sorry for being vague:

    you are correct this is a new clean install of the full 4.5 GA release - no modules loaded

    running on Linux RH EN4 - PHP 4.3.9 - MYSQL 4.1.12

    When i tried a test out of the box everything seemed to work correctly. The fault has only happened since i imported the CSV information (Generated by a 4.2.1B version that just wouldnt upgrade) Since we had only been using it for a week i thought i would export the infomration i needed and start again.

    If you would like to view the live site PM me and ill give you the details.

    Thanks in advance for your assistance

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: 4.5 GA - SQL errors

    Quote Originally Posted by panoptech
    Sorry for being vague:

    you are correct this is a new clean install of the full 4.5 GA release - no modules loaded

    running on Linux RH EN4 - PHP 4.3.9 - MYSQL 4.1.12

    When i tried a test out of the box everything seemed to work correctly. The fault has only happened since i imported the CSV information (Generated by a 4.2.1B version that just wouldnt upgrade) Since we had only been using it for a week i thought i would export the infomration i needed and start again.

    If you would like to view the live site PM me and ill give you the details.

    Thanks in advance for your assistance
    Can you set your log level to debug (in your log4php.properties file) and send me your sugarcrm.log (ken.brill (a t) gmail.com
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    Markku's Avatar
    Markku is offline Sugar Community Member
    Join Date
    Nov 2004
    Location
    Helsinki
    Posts
    910

    Default Re: 4.5 GA - SQL errors

    The Compatibility Matrix in SugarOpenSource_ReleaseNotes_4.5.pdf states that MySQL 4.1.2 or higher is supported. As you are using MySQL 4.1.12 I started to wonder if MySQL version could play some role here?

Thread Information

Users Browsing this Thread

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

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
  •