Loading...
 
Skip to main content

DB update SQL statement

Status
Open
Subject
DB update SQL statement
Version
3.x
Category
  • Error
  • Patch
Feature
Database MySQL (MyISAM)
Resolution status
New
Rating
(0)
Description

When upgrade from version 2.2 to 3.9, I received one database error.

The error is related to this statement:

INSERT INTO `tiki_menu_options` (`optionId`, `menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (197,42,'o','Mind Map','tiki-mindmap.php',255,'feature_wiki_mindmap','tiki_p_view','',0)

The SQL statement failed to complete because the optionId 197 already exist.

Solution

I believe since the optionId is auto-increment, I think there is no need to include the optionId in the insert statement.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Created
Tuesday 26 July, 2011 13:14:39 UTC
by y_d_hsu
LastModif
Tuesday 26 July, 2011 13:14:39 UTC


Show PHP error messages