![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Geeky MySQL Problem
Hi,
Im setting up a directory script and am trying to change the description field type from VARCHAR (255 limit) to LONGTEXT to allow for longer descriptions however I'm getting the following error: Error SQL-query : ALTER TABLE `PLD_LINK` CHANGE `DESCRIPTION` `DESCRIPTION` LONGTEXT DEFAULT NULL MySQL said: #1170 - BLOB column 'DESCRIPTION' used in key specification without a key length Ive tried setting the lenght to 1000 but the error still occurs. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2004
Location: Australia iCQ:408018496
Posts: 1,332
|
google that shit
__________________
I dont need a sig. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Join Date: Jun 2005
Posts: 89
|
Try using MODIFY instead of CHANGE since it has the same field name.
ALTER TABLE `PLD_LINK` MODIFY `DESCRIPTION` LONGTEXT DEFAULT NULL |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
|
what he said or hire a programmer to do it
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
|
BLOB columns are treated as binary strings (byte strings).
you need to set that column to text... TEXT types, TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT depending on how long the entry is. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Quote:
#1170 - BLOB column 'DESCRIPTION' used in key specification without a key length Very strange. BTW im trying to do all this via myphpadmin if that makes a diffrence.... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Fixed it via this post I found:
this problem appeared to us when we tried to place a normal "INDEX" on a column of datatype TEXT. Our solution, which is definitely legal but not necessarily effective (currently unknown) was to change the ALTER TABLE... command from INDEX to ALTER TABLE... FULLTEXT (column). Thanks all for the suggestions. |
![]() |
![]() ![]() ![]() ![]() ![]() |