6 messages in com.mysql.lists.mysqlRe: Re: Re: Re: UNIQUE on blob
FromSent OnAttachments
Stefan Kuhn11 Jul 2002 07:56 
Alexander Barkov11 Jul 2002 09:14 
Stefan Kuhn12 Jul 2002 01:43 
louie miranda12 Jul 2002 02:05 
louie miranda12 Jul 2002 02:11 
Victoria Reznichenko12 Jul 2002 08:39 
Subject:Re: Re: Re: Re: UNIQUE on blob
From:Stefan Kuhn (sku@ice.mpg.de)
Date:07/12/2002 01:43:05 AM
List:com.mysql.lists.mysql

Hi everybody,

my humble excuse to all I bothered with that ... mysql type mediumblob is working perfectly, but there's another column in the tabel of type varchar containing mostly the same values. So that's it Stefan

P. S: I do the select first because I need the ID anyway.

Hi!

First of all, MEDIUMBLOB type is case-sensitive. I checked this sequence and everything worked as expected. I think you have a mistake in your table. What does "SHOW CREATE TABLE table" give? Second, there is no needs to check that the value is already presents using "SELECT" just to avoid an attempt of double key value inserting. It is safe to insert without selecting. After inserting you have just to check that really happened, either record was inserted or error happened. Why do you want to do iy