Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-30 Thread Mark Maggelet
On Tue, 30 Jan 2001 10:04:47 -0800, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: >This underscores a problem I have found with a few asp-driven >college >websites. Ungodly long URLs are used to address some of their pages. >When I have inquired about this, and how to tell a friend where to >find p

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-30 Thread John Jensen
rt it to TINYTEXT. > > ---snip--- > > mysql> alter table Headlines modify Url TINYTEXT NOT NULL; > > ERROR 1170: BLOB column 'Url' used in key specification without a key > length > > ---snip--- > > There is currently a unique index on the

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-30 Thread Jeremy D. Zawodny
On Mon, Jan 29, 2001 at 11:48:46PM -0800, Todd Grigsby wrote: > > > In this particular case it doesn't. I need to ensure that each URL > > exists only once. And it is entirely possible to have a URL with 300 > > characters in it. > > Ok, how about encoding it? Come up with a simple compression

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Todd Grigsby
> In this particular case it doesn't. I need to ensure that each URL > exists only once. And it is entirely possible to have a URL with 300 > characters in it. Ok, how about encoding it? Come up with a simple compression algo that uses 6 bits for every 8 bits, allowing for a-z, A-Z, slashes, do

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Jeremy D. Zawodny
On Tue, Jan 30, 2001 at 03:20:27PM +0800, Sam Wong wrote: > Personally speaking, if the index > 256, it will lost the meaning of > indexing... Perhaps. In this particular case it doesn't. I need to ensure that each URL exists only once. And it is entirely possible to have a URL with 300 characte

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Sam Wong
; used in key specification without a key length > On Mon, Jan 29, 2001 at 10:07:55PM -0800, Jeremy D. Zawodny wrote: > > > > ---snip--- > > > > mysql> alter table Headlines modify Url TINYTEXT NOT NULL; > > > > ERROR 1170: BLOB column 'Url' use

Re: ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Jeremy D. Zawodny
On Mon, Jan 29, 2001 at 10:07:55PM -0800, Jeremy D. Zawodny wrote: > > ---snip--- > > mysql> alter table Headlines modify Url TINYTEXT NOT NULL; > > ERROR 1170: BLOB column 'Url' used in key specification without a key length Oh, okay. Now I understand. The max

ERROR 1170: BLOB column 'Url' used in key specification without a key length

2001-01-29 Thread Jeremy D. Zawodny
Headlines modify Url TINYTEXT NOT NULL; ERROR 1170: BLOB column 'Url' used in key specification without a key length ---snip--- There is currently a unique index on the Url column. The manual states that one can have an index on a BLOB column: http://www.mysql.com/doc/B/L/BLOB.html S