As I told you, I was working on prototype just for blobs.
and information in the MyISAM storage engine. I have solved that problem temporarily. Here is my output
MariaDB [database1]> set storage_engine=myisam;
Query OK, 0 rows affected (0.00 sec)
MariaDB [database1]> create database mydb;
Query OK, 1 row affected (0.00 sec)
MariaDB [database1]> use mydb;
Database changed
MariaDB [mydb]> create table table1(a int,b1 blob,b2 longblob,unique(a,b1,b2(5))
);
Query OK, 0 rows affected (0.09 sec)
MariaDB [mydb]> insert into table1 values(4,3333333,55555555);
Query OK, 1 row affected (0.00 sec)
MariaDB [mydb]> insert into table1 values(4,3333333,55555);
ERROR 1169 (23000): Can't write, because of unique constraint, to table 'table1'
MariaDB [mydb]> insert into table1 values(4,3333333,55555555);
ERROR 1169 (23000): Can't write, because of unique constraint, to table 'table1'
MariaDB [mydb]> insert into table1 values(4,333333453,55555555);
Query OK, 1 row affected (0.00 sec)
3 rows in set (0.00 sec)
MariaDB [mydb]> insert into table1 values(5,333333453,55555555);
Query OK, 1 row affected (0.00 sec)
MariaDB [mydb]> insert into table1 values(5,333333453,55555);
ERROR 1169 (23000): Can't write, because of unique constraint, to table 'table1'
MariaDB [mydb]> show indexes from table1;
+--------+------------+----------+--------------+-------------+-----------+-----
--------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Card
inality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+--------+------------+----------+--------------+-------------+-----------+-----
--------+----------+--------+------+------------+---------+---------------+
| table1 | 0 | a | 1 | a | A |
NULL | NULL | NULL | YES | BTREE | | |
| table1 | 0 | a | 2 | b1 | A |
NULL | NULL | NULL | YES | BTREE | | |
| table1 | 0 | a | 3 | b2 | A |
0 | 5 | NULL | YES | BTREE | | |
+--------+------------+----------+--------------+-------------+-----------+-----
--------+----------+--------+------+------------+---------+---------------+
3 rows in set (0.00 sec)
Any suggestions would be helpful.