Jump to content

SQL error


Recommended Posts

I've got two sql error while upgrading to 1.4 alpha3

INSERT INTO `sgdtt_hook_module` (`id_module`, `id_hook`, `position`) VALUES ((SELECT `id_module` FROM `sgdtt_module` WHERE `name` = 'crossselling'), 9, (SELECT max_position FROM (SELECT MAX(position)+1 as max_position FROM `sgdtt_hook_module` WHERE `id_hook` = 9) tmp))(1048)

Column 'id_module' cannot be null



INSERT INTO `sgdtt_hook_module` (`id_module`, `id_hook`, `position`) VALUES (23, 9, (SELECT max_position from (SELECT MAX(position)+1 as max_position FROM `sgdtt_hook_module` WHERE `id_hook` = 9) tmp))

(1062) Duplicate entry '23-9' for key 'PRIMARY'



Advice pls on how to resolve the problem.

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...