Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sql query error.. heeelp!


robster2

Recommended Posts

Posted

Hi all

 

Im trying to run this sql query:

ALTER TABLE `products` ADD `products_purchase` `products_purchase` TINYINT(1) NOT NULL DEFAULT '1' ;

 

from an older contribution "Product Purchase Option" http://addons.oscommere.com/info/3865

 

and Im getting this 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 '`products_purchase` TINYINT(1) NOT NULL DEFAULT '1'' at line 1

 

My version is MySQL 5.1.49 and I'm not very familiar with databases..any suggestions????

 

Thanks in advance

Rob

Posted

This might work better

 

[quote name='robster2' date='16 October 2010 - 04:03 PM' timestamp='1287241433'

ALTER TABLE `products` ADD `products_purchase` TINYINT(1) NOT NULL DEFAULT '1' ;

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Thought it might.

 

See the info below if you want to find out more about MySql

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Clearly a bug in the installation instructions (duplicated field name). Please email/contact the author and have them update it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...