summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-10-22 01:19:05 +0300
committerunknown <monty@donna.mysql.com>2000-10-22 01:19:05 +0300
commitda12c768d31b33cc9ab69f5efc1e7f754c1dfade (patch)
tree50bd20246c62aa9e57f6afc0a26f08cb1f3d0396 /sql/table.cc
parent94c93b9ec7f68ba50219818caec23e61f85b800d (diff)
downloadmariadb-git-da12c768d31b33cc9ab69f5efc1e7f754c1dfade.tar.gz
Give an error if you use a BLOB(X) where X > 255
Fixes for MIT pthreads Docs/manual.texi: Update for MIT pthreads and sockets configure.in: Fixed MIT pthreads to use sockets myisam/mi_check.c: Portability fix myisam/sort.c: Portability fix sql/handler.h: Give an error if you use a BLOB(X) where X > 255 sql/mysqld.cc: Fixed MIT pthreads to use sockets sql/sql_table.cc: Give an error if you use a BLOB(X) where X > 255 sql/table.cc: Fixed problem with BDB tables without keys
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index b784c8ca35f..bdc2c0f124e 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -491,6 +491,8 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
else
outparam->primary_key = MAX_KEY; // we do not have a primary key
}
+ else
+ outparam->primary_key= MAX_KEY;
x_free((gptr) disk_buff);
disk_buff=0;
if (new_field_pack_flag <= 1)