Forums / Setting Up Categories, Products, Attributes / How to correct SQL syntax error?

How to correct SQL syntax error?

Locked

Started by meeven on 22 Aug 2007, 11:37 AM · Views: 3,663

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Aug 2007, 11:37 AM
#1
meeven avatar

meeven

New Zenner

Join Date:
Apr 2007
Posts:
47
Plugin Contributions:
0

How to correct SQL syntax error?

I am trying to install Hareslade's version of moku's book product type. When I upload the main sql patch file, I get the following 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 'id'=>'1', 'text'=>'True'), array('id'=>'0', 'text'=>'False')), ', now())' at line 1
in:
[INSERT INTO product_type_layout (configuration_title, configuration_key, configuration_value, configuration_description, product_type_id, sort_order, set_function, date_added) VALUES ('Enable the Book Search', 'SEARCH_PRODUCT_BOOK_ENABLED', '1', 'Add the books to the search engine 0= off 1= on', '7', '0', 'zen_cfg_select_drop_down(array(array('id'=>'1', 'text'=>'True'), array('id'=>'0', 'text'=>'False')), ', now());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Can anyone help correct this error? What changes would I need to make to the syntax? My server is running MySQL 5.0.24-standard-log

Thanks in advance.

22 Aug 2007, 11:48 AM
#2
meeven avatar

meeven

New Zenner

Join Date:
Apr 2007
Posts:
47
Plugin Contributions:
0

Re: How to correct SQL syntax error?

Corrections: The MySQL version is 5.0.27

Also, the drop table and delete commands got executed, it's just the INSERT commands that won't work and the book product type is useless without the stuff that gets added to the product_layout table.

22 Aug 2007, 11:51 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: How to correct SQL syntax error?

Have you tried running it via phpMyAdmin instead ?

.
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.

22 Aug 2007, 1:14 PM
#4
meeven avatar

meeven

New Zenner

Join Date:
Apr 2007
Posts:
47
Plugin Contributions:
0

Re: How to correct SQL syntax error?

Thank you! Don't know how you manage to do it, but your tips are so handy:cool:

I am finally done with the install, thanks entirely to you.:D