Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b5ad31df
Commit
b5ad31df
authored
Oct 22, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give an error if you use a BLOB(X) where X > 255
Fixes for MIT pthreads
parent
2fd65762
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
59 deletions
+64
-59
Docs/manual.texi
Docs/manual.texi
+51
-50
configure.in
configure.in
+2
-2
myisam/mi_check.c
myisam/mi_check.c
+2
-2
myisam/sort.c
myisam/sort.c
+2
-2
sql/handler.h
sql/handler.h
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/sql_table.cc
sql/sql_table.cc
+2
-1
sql/table.cc
sql/table.cc
+2
-0
No files found.
Docs/manual.texi
View file @
b5ad31df
This diff is collapsed.
Click to expand it.
configure.in
View file @
b5ad31df
...
@@ -1862,8 +1862,8 @@ AC_SUBST(server_scripts)
...
@@ -1862,8 +1862,8 @@ AC_SUBST(server_scripts)
if
test
"
$with_posix_threads
"
=
"no"
-o
"
$with_mit_threads
"
=
"yes"
if
test
"
$with_posix_threads
"
=
"no"
-o
"
$with_mit_threads
"
=
"yes"
then
then
# MIT pthreads does no
t
support connecting with unix sockets
# MIT pthreads does no
w
support connecting with unix sockets
AC_DEFINE
(
HAVE_THREADS_WITHOUT_SOCKETS
)
#
AC_DEFINE(HAVE_THREADS_WITHOUT_SOCKETS)
fi
fi
# Some usefull subst
# Some usefull subst
...
...
myisam/mi_check.c
View file @
b5ad31df
...
@@ -192,7 +192,7 @@ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag)
...
@@ -192,7 +192,7 @@ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag)
}
}
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
wrong:
wrong:
param
->
retry_without_quick
=
1
;
/
/ Don't use quick repair
param
->
retry_without_quick
=
1
;
/
* Don't use quick repair */
if
(
test_flag
&
T_VERBOSE
)
puts
(
""
);
if
(
test_flag
&
T_VERBOSE
)
puts
(
""
);
mi_check_print_error
(
param
,
"record delete-link-chain corrupted"
);
mi_check_print_error
(
param
,
"record delete-link-chain corrupted"
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
...
@@ -292,7 +292,7 @@ int chk_size(MI_CHECK *param, register MI_INFO *info)
...
@@ -292,7 +292,7 @@ int chk_size(MI_CHECK *param, register MI_INFO *info)
error
=
1
;
error
=
1
;
mi_check_print_error
(
param
,
"Size of datafile is: %-8s Should be: %s"
,
mi_check_print_error
(
param
,
"Size of datafile is: %-8s Should be: %s"
,
llstr
(
size
,
buff
),
llstr
(
skr
,
buff2
));
llstr
(
size
,
buff
),
llstr
(
skr
,
buff2
));
param
->
retry_without_quick
=
1
;
/
/ Don't use quick repair
param
->
retry_without_quick
=
1
;
/
* Don't use quick repair */
}
}
else
else
{
{
...
...
myisam/sort.c
View file @
b5ad31df
...
@@ -291,9 +291,9 @@ static int NEAR_F merge_many_buff(MI_SORT_PARAM *info, uint keys,
...
@@ -291,9 +291,9 @@ static int NEAR_F merge_many_buff(MI_SORT_PARAM *info, uint keys,
temp
=
from_file
;
from_file
=
to_file
;
to_file
=
temp
;
temp
=
from_file
;
from_file
=
to_file
;
to_file
=
temp
;
*
maxbuffer
=
(
int
)
(
lastbuff
-
buffpek
)
-
1
;
*
maxbuffer
=
(
int
)
(
lastbuff
-
buffpek
)
-
1
;
}
}
close_cached_file
(
to_file
);
/
/ This holds old result
close_cached_file
(
to_file
);
/
* This holds old result */
if
(
to_file
==
t_file
)
if
(
to_file
==
t_file
)
*
t_file
=
t_file2
;
/
/ Copy result file
*
t_file
=
t_file2
;
/
* Copy result file */
DBUG_RETURN
(
*
maxbuffer
>=
MERGEBUFF2
);
/* Return 1 if interrupted */
DBUG_RETURN
(
*
maxbuffer
>=
MERGEBUFF2
);
/* Return 1 if interrupted */
}
/* merge_many_buff */
}
/* merge_many_buff */
...
...
sql/handler.h
View file @
b5ad31df
...
@@ -273,6 +273,7 @@ public:
...
@@ -273,6 +273,7 @@ public:
virtual
uint
max_keys
()
const
=
0
;
virtual
uint
max_keys
()
const
=
0
;
virtual
uint
max_key_parts
()
const
=
0
;
virtual
uint
max_key_parts
()
const
=
0
;
virtual
uint
max_key_length
()
const
=
0
;
virtual
uint
max_key_length
()
const
=
0
;
virtual
uint
max_key_part_length
()
{
return
255
;
}
virtual
uint
min_record_length
(
uint
options
)
const
{
return
1
;
}
virtual
uint
min_record_length
(
uint
options
)
const
{
return
1
;
}
virtual
bool
low_byte_first
()
const
{
return
1
;
}
virtual
bool
low_byte_first
()
const
{
return
1
;
}
virtual
bool
is_crashed
()
const
{
return
0
;
}
virtual
bool
is_crashed
()
const
{
return
0
;
}
...
...
sql/mysqld.cc
View file @
b5ad31df
...
@@ -809,7 +809,7 @@ static void server_init(void)
...
@@ -809,7 +809,7 @@ static void server_init(void)
}
}
#endif
#endif
#if defined(HAVE_SYS_UN_H)
&& !defined(HAVE_mit_thread)
#if defined(HAVE_SYS_UN_H)
/*
/*
** Create the UNIX socket
** Create the UNIX socket
*/
*/
...
@@ -2694,7 +2694,7 @@ The default values (after parsing the command line arguments) are:\n\n");
...
@@ -2694,7 +2694,7 @@ The default values (after parsing the command line arguments) are:\n\n");
if
(
opt_slow_logname
)
if
(
opt_slow_logname
)
printf
(
"update log: %s
\n
"
,
opt_slow_logname
);
printf
(
"update log: %s
\n
"
,
opt_slow_logname
);
printf
(
"TCP port: %d
\n
"
,
mysql_port
);
printf
(
"TCP port: %d
\n
"
,
mysql_port
);
#if defined(HAVE_SYS_UN_H)
&& !defined(HAVE_mit_thread)
#if defined(HAVE_SYS_UN_H)
printf
(
"Unix socket: %s
\n
"
,
mysql_unix_port
);
printf
(
"Unix socket: %s
\n
"
,
mysql_unix_port
);
#endif
#endif
if
(
my_disable_locking
)
if
(
my_disable_locking
)
...
...
sql/sql_table.cc
View file @
b5ad31df
...
@@ -416,7 +416,8 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -416,7 +416,8 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
{
{
if
(
f_is_blob
(
sql_field
->
pack_flag
))
if
(
f_is_blob
(
sql_field
->
pack_flag
))
{
{
if
((
length
=
column
->
length
)
>
file
->
max_key_length
())
if
((
length
=
column
->
length
)
>
file
->
max_key_length
()
||
length
>
file
->
max_key_part_length
())
{
{
my_error
(
ER_WRONG_SUB_KEY
,
MYF
(
0
));
my_error
(
ER_WRONG_SUB_KEY
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
...
...
sql/table.cc
View file @
b5ad31df
...
@@ -491,6 +491,8 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
...
@@ -491,6 +491,8 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
else
else
outparam
->
primary_key
=
MAX_KEY
;
// we do not have a primary key
outparam
->
primary_key
=
MAX_KEY
;
// we do not have a primary key
}
}
else
outparam
->
primary_key
=
MAX_KEY
;
x_free
((
gptr
)
disk_buff
);
x_free
((
gptr
)
disk_buff
);
disk_buff
=
0
;
disk_buff
=
0
;
if
(
new_field_pack_flag
<=
1
)
if
(
new_field_pack_flag
<=
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment