Webmastersite.net
Register Log In

Timestamp - MySQL Error: 1089
problem changing field type to INT

Comments on Timestamp - MySQL Error: 1089

osirs
Member

Usergroup: Customer
Joined: Mar 01, 2003
Location: San Diego

Total Topics: 12
Total Comments: 31
osirs
Posted Feb 03, 2007 - 9:22 PM:

In checking some of my comments I get this error message: "Timestamp is not numeric, it is time. Please report this bug." I tried to change the field type to "INT" but I get this error message in phpmyadmin:

Database SDBest
Error
SQL-query :

ALTER TABLE `wsnlinks_members` CHANGE `time` `time` INT NOT NULL

MySQL said:
#1089 - Incorrect sub part key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique sub keys
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 04, 2007 - 8:59 AM:

Try
ALTER TABLE `wsnlinks_members` CHANGE `time` `time` INT(11) NOT NULL default 0;

Edit: Actually it's talking about keys again there. Check the bottom of the structure tab, what columns is wsnindex on?
osirs
Member

Usergroup: Customer
Joined: Mar 01, 2003
Location: San Diego

Total Topics: 12
Total Comments: 31
osirs
Posted Feb 04, 2007 - 11:09 PM:

Didn't work, same error message. wsnindex on: id, time
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 05, 2007 - 10:09 AM:

Try deleting the index, then try again. Next version will prevent it from creating any index on id or duplicates on the same column in case that's a problem.
osirs
Member

Usergroup: Customer
Joined: Mar 01, 2003
Location: San Diego

Total Topics: 12
Total Comments: 31
osirs
Posted Feb 06, 2007 - 1:58 AM:

I was able to change the time field on _members to int(11) but I still get the error message on some of my comments: Timestamp is not numeric, it is time...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 07, 2007 - 10:14 AM:

Does the field have a default value of 0? If so then the only possibility seems to be that the comments in question don't actually exist, but are in some unknown way getting processed. I'd have to see an example.
osirs
Member

Usergroup: Customer
Joined: Mar 01, 2003
Location: San Diego

Total Topics: 12
Total Comments: 31
osirs
Posted Feb 07, 2007 - 9:49 PM:

The comments exist. Here one of the pages this error happens: http://www.sdbest.com/SDBest/thread/7

If you still have the pwd/user info for sdrox.com the phpmyadmin is the same only the directory is at sdbest.com/Php/

I am wondering if just doing an upgrade may fix the problem.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 09, 2007 - 6:58 PM:

Updating to 4.0.14 and then submitting the settings->general page should fix all the index problems, but probably not this.

Either the links or comments table must have the non-numeric time field.

When did you send me the sdrox.com info?
osirs
Member

Usergroup: Customer
Joined: Mar 01, 2003
Location: San Diego

Total Topics: 12
Total Comments: 31
osirs
Posted Feb 11, 2007 - 10:54 PM:

Sent on 1/31/07 regarding:
/forums/threads/upgrade_-_lost_links-7144.html
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Feb 13, 2007 - 9:14 PM:

There seem to be no comments on that link, so the link itself would have to be the issue... yet I don't see anything unusual about link 7's data in phpmyadmin. The only way I can say anything then is site inspection: scripts.webmastersite.net/w...nlinks/?section=inspection
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.