Can anyone tell me why my table continues to accept instances of the same document_name ?
My unique keys are as if they are not even there ...?
Help Please
DO I need to specify ISAM something ?
Here it is...
email appreciated...
drop table document_t;
create table document_t (
email_address VARCHAR (128) default '' NOT NULL,
document_name VARCHAR (128) default '' NOT NULL,
file_name VARCHAR (255),
file_extension VARCHAR (255),
num_bytes BIGINT,
mime_content_type VARCHAR (255),
description VARCHAR (255),
binary_blob LONGBLOB,
created BIGINT,
docnumber BIGINT NOT NULL AUTO_INCREMENT,
primary key (docnumber,document_name),
foreign key (email_address) references user_t
);
I even had trouble getting the auto_increment to work... docnumber was fussy and wanted to be the first in order in order for the auto_increment to actually perform the increment. Having come from oracle this seems flakey.
If anyone can straighten me out I would be greatful. I want to use this beast.
__________________
- cheers