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
53ac2613
Commit
53ac2613
authored
Dec 11, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added back -max to server name if we are using InnoDB.
parent
b737eb89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
libmysql/libmysql.c
libmysql/libmysql.c
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+3
-3
No files found.
libmysql/libmysql.c
View file @
53ac2613
...
@@ -939,7 +939,7 @@ static MYSQL_DATA *read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
...
@@ -939,7 +939,7 @@ static MYSQL_DATA *read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
else
else
{
{
cur
->
data
[
field
]
=
to
;
cur
->
data
[
field
]
=
to
;
if
(
len
>
end_to
-
to
)
if
(
len
>
(
ulong
)
(
end_to
-
to
)
)
{
{
free_rows
(
result
);
free_rows
(
result
);
net
->
last_errno
=
CR_UNKNOWN_ERROR
;
net
->
last_errno
=
CR_UNKNOWN_ERROR
;
...
@@ -998,7 +998,7 @@ read_one_row(MYSQL *mysql,uint fields,MYSQL_ROW row, ulong *lengths)
...
@@ -998,7 +998,7 @@ read_one_row(MYSQL *mysql,uint fields,MYSQL_ROW row, ulong *lengths)
}
}
else
else
{
{
if
(
len
>
end_pos
-
pos
)
if
(
len
>
(
ulong
)
(
end_pos
-
pos
)
)
{
{
mysql
->
net
.
last_errno
=
CR_UNKNOWN_ERROR
;
mysql
->
net
.
last_errno
=
CR_UNKNOWN_ERROR
;
strmov
(
mysql
->
net
.
last_error
,
ER
(
mysql
->
net
.
last_errno
));
strmov
(
mysql
->
net
.
last_error
,
ER
(
mysql
->
net
.
last_errno
));
...
...
sql/mysqld.cc
View file @
53ac2613
...
@@ -184,17 +184,17 @@ static char **opt_argv;
...
@@ -184,17 +184,17 @@ static char **opt_argv;
#ifdef __WIN__
#ifdef __WIN__
#undef MYSQL_SERVER_SUFFIX
#undef MYSQL_SERVER_SUFFIX
#ifdef __NT__
#ifdef __NT__
#if defined(HAVE_BERKELEY_DB)
#if defined(HAVE_
INNOBASE_DB) || defined(HAVE_
BERKELEY_DB)
#define MYSQL_SERVER_SUFFIX "-max-nt"
#define MYSQL_SERVER_SUFFIX "-max-nt"
#else
#else
#define MYSQL_SERVER_SUFFIX "-nt"
#define MYSQL_SERVER_SUFFIX "-nt"
#endif
/* ...DB */
#endif
/* ...DB */
#elif defined(HAVE_BERKELEY_DB)
#elif defined(HAVE_
INNOBASE_DB) || defined(HAVE_
BERKELEY_DB)
#define MYSQL_SERVER_SUFFIX "-max"
#define MYSQL_SERVER_SUFFIX "-max"
#else
#else
#define MYSQL_SERVER_SUFFIX ""
#define MYSQL_SERVER_SUFFIX ""
#endif
/* __NT__ */
#endif
/* __NT__ */
#endif
#endif
/* __WIN__ */
#ifdef HAVE_BERKELEY_DB
#ifdef HAVE_BERKELEY_DB
SHOW_COMP_OPTION
have_berkeley_db
=
SHOW_OPTION_YES
;
SHOW_COMP_OPTION
have_berkeley_db
=
SHOW_OPTION_YES
;
...
...
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