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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
58a54348
Commit
58a54348
authored
Apr 02, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into hundin.mysql.fi:/my/bk/mysql
parents
b50d3ef9
a7b5bdda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
21 deletions
+21
-21
client/mysql.cc
client/mysql.cc
+3
-3
configure.in
configure.in
+2
-6
sql/ha_innobase.cc
sql/ha_innobase.cc
+6
-5
sql/item_strfunc.cc
sql/item_strfunc.cc
+10
-7
No files found.
client/mysql.cc
View file @
58a54348
...
...
@@ -34,7 +34,7 @@
#include "my_readline.h"
#include <signal.h>
const
char
*
VER
=
"11.1
7
"
;
const
char
*
VER
=
"11.1
8
"
;
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
...
...
@@ -397,12 +397,12 @@ static struct option long_options[] =
{
"local-infile"
,
optional_argument
,
0
,
OPT_LOCAL_INFILE
},
{
"no-auto-rehash"
,
no_argument
,
0
,
'A'
},
{
"no-named-commands"
,
no_argument
,
0
,
'g'
},
{
"no-tee"
,
no_argument
,
0
,
OPT_NOTEE
},
#ifndef __WIN__
{
"no-pager"
,
no_argument
,
0
,
OPT_NOPAGER
},
{
"nopager"
,
no_argument
,
0
,
OPT_NOPAGER
},
/* we are kind */
{
"pager"
,
optional_argument
,
0
,
OPT_PAGER
},
#endif
{
"no-tee"
,
no_argument
,
0
,
OPT_NOTEE
},
{
"notee"
,
no_argument
,
0
,
OPT_NOTEE
},
/* we are kind */
{
"tee"
,
required_argument
,
0
,
OPT_TEE
},
{
"one-database"
,
no_argument
,
0
,
'o'
},
...
...
@@ -484,7 +484,7 @@ static void usage(int version)
still work from the first line.
\n
\
-G, --enable-named-commands
\n
\
Named commands are enabled. Opposite to -g.
\n
\
-i, --ignore-space
Ignore space
after function names.
\n
\
-i, --ignore-space
s Ignore spaces
after function names.
\n
\
-h, --host=... Connect to host.
\n
\
-H, --html Produce HTML output.
\n
\
--local-infile=[1|0] Enable/disable LOAD DATA LOCAL INFILE
\n
\
...
...
configure.in
View file @
58a54348
...
...
@@ -291,19 +291,15 @@ case "$target_os" in
if
test
"
$GCC
"
!=
"yes"
;
then
# We are using built-in inline function
CFLAGS
=
"
$CFLAGS
-Kalloca"
CXX
=
"
$CXX
-DNO_CPLUSPLUS_ALLOCA"
else
CXX
=
"
$CXX
-DNO_CPLUSPLUS_ALLOCA"
fi
CXXFLAGS
=
"
$CXXFLAGS
-DNO_CPLUSPLUS_ALLOCA"
;;
sysv5OpenUNIX8
*
)
if
test
"
$GCC
"
!=
"yes"
;
then
# We are using built-in inline function
CFLAGS
=
"
$CFLAGS
-Kalloca"
CXX
=
"
$CXX
-DNO_CPLUSPLUS_ALLOCA"
else
CXX
=
"
$CXX
-DNO_CPLUSPLUS_ALLOCA"
fi
CXXFLAGS
=
"
$CXXFLAGS
-DNO_CPLUSPLUS_ALLOCA"
;;
esac
AC_SUBST
(
CC
)
...
...
sql/ha_innobase.cc
View file @
58a54348
...
...
@@ -1890,7 +1890,7 @@ ha_innobase::change_active_index(
InnoDB */
{
row_prebuilt_t
*
prebuilt
=
(
row_prebuilt_t
*
)
innobase_prebuilt
;
KEY
*
key
;
KEY
*
key
=
0
;
statistic_increment
(
ha_read_key_count
,
&
LOCK_status
);
...
...
@@ -1911,9 +1911,10 @@ ha_innobase::change_active_index(
if
(
!
prebuilt
->
index
)
{
fprintf
(
stderr
,
"InnoDB: Could not find key n:o %u with name %s from dict cache
\n
"
"InnoDB: for table %s
\n
"
,
keynr
,
key
->
name
,
prebuilt
->
table
->
name
);
"InnoDB: for table %s
\n
"
,
keynr
,
key
?
key
->
name
:
"NULL"
,
prebuilt
->
table
->
name
);
return
(
1
);
DBUG_RETURN
(
1
);
}
assert
(
prebuilt
->
search_tuple
);
...
...
@@ -1929,7 +1930,7 @@ ha_innobase::change_active_index(
build_template
(
prebuilt
,
user_thd
,
table
,
ROW_MYSQL_WHOLE_ROW
);
return
(
0
);
DBUG_RETURN
(
0
);
}
/**************************************************************************
...
...
@@ -2812,7 +2813,7 @@ ha_innobase::estimate_number_of_rows(void)
estimate
=
2
*
data_file_length
/
dict_index_calc_min_rec_len
(
index
);
return
((
ha_rows
)
estimate
);
DBUG_RETURN
((
ha_rows
)
estimate
);
}
/*************************************************************************
...
...
sql/item_strfunc.cc
View file @
58a54348
...
...
@@ -1720,18 +1720,21 @@ String* Item_func_inet_ntoa::val_str(String* str)
uchar
buf
[
8
],
*
p
;
ulonglong
n
=
(
ulonglong
)
args
[
0
]
->
val_int
();
char
num
[
4
];
// we do not know if args[0] is NULL until we have called
// some val function on it if args[0] is not a constant!
/*
we do not know if args[0] is NULL until we have called
some val function on it if args[0] is not a constant!
*/
if
((
null_value
=
args
[
0
]
->
null_value
))
return
0
;
// Null value
str
->
length
(
0
);
int8store
(
buf
,
n
);
/
/ now we can assume little endian
// we handle the possibility of an 8-byte IP address
// however, we do not want to confuse those who are just using
//
4 byte ones
/
*
Now we can assume little endian.
We handle the possibility of an 8-byte IP address however, we do
not want to confuse those who are just using
4 byte ones
*/
for
(
p
=
buf
+
8
;
p
>
buf
+
4
&&
p
[
-
1
]
==
0
;
p
--
)
;
num
[
3
]
=
'.'
;
while
(
p
--
>
buf
)
...
...
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