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
c9b20854
Commit
c9b20854
authored
Jan 26, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
parents
1cd8eaa7
86016aeb
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
26 deletions
+25
-26
VC++Files/libmysqld/libmysqld.dsp
VC++Files/libmysqld/libmysqld.dsp
+0
-4
VC++Files/mysqldemb/mysqldemb.dsp
VC++Files/mysqldemb/mysqldemb.dsp
+0
-4
extra/comp_err.c
extra/comp_err.c
+4
-4
innobase/ut/ut0ut.c
innobase/ut/ut0ut.c
+7
-0
libmysql/libmysql.c
libmysql/libmysql.c
+2
-2
sql/field.h
sql/field.h
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+3
-3
sql/key.cc
sql/key.cc
+2
-2
sql/opt_range.cc
sql/opt_range.cc
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+2
-2
sql/table.cc
sql/table.cc
+3
-3
No files found.
VC++Files/libmysqld/libmysqld.dsp
View file @
c9b20854
...
...
@@ -228,10 +228,6 @@ SOURCE=..\sql\ha_innodb.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\ha_isammrg.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\ha_myisam.cpp
# End Source File
# Begin Source File
...
...
VC++Files/mysqldemb/mysqldemb.dsp
View file @
c9b20854
...
...
@@ -169,10 +169,6 @@ SOURCE=..\sql\ha_innodb.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\ha_isammrg.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\ha_myisam.cpp
# End Source File
# Begin Source File
...
...
extra/comp_err.c
View file @
c9b20854
...
...
@@ -41,7 +41,7 @@ static char *HEADERFILE= (char*) "mysqld_error.h";
static
char
*
NAMEFILE
=
(
char
*
)
"mysqld_ername.h"
;
static
char
*
STATEFILE
=
(
char
*
)
"sql_state.h"
;
static
char
*
TXTFILE
=
(
char
*
)
"../sql/share/errmsg.txt"
;
static
char
*
DATADIR
=
(
char
*
)
"../sql/share/"
;
static
char
*
DATADIR
ECTORY
=
(
char
*
)
"../sql/share/"
;
static
char
*
default_dbug_option
=
(
char
*
)
"d:t:O,/tmp/comp_err.trace"
;
/* Header for errmsg.sys files */
...
...
@@ -112,8 +112,8 @@ static struct my_option my_long_options[]=
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"in_file"
,
'F'
,
"Input file"
,
(
gptr
*
)
&
TXTFILE
,
(
gptr
*
)
&
TXTFILE
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"out_dir"
,
'D'
,
"Output base directory"
,
(
gptr
*
)
&
DATADIR
,
(
gptr
*
)
&
DATADIR
,
{
"out_dir"
,
'D'
,
"Output base directory"
,
(
gptr
*
)
&
DATADIR
ECTORY
,
(
gptr
*
)
&
DATADIR
ECTORY
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"out_file"
,
'O'
,
"Output filename (errmsg.sys)"
,
(
gptr
*
)
&
OUTFILE
,
(
gptr
*
)
&
OUTFILE
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -281,7 +281,7 @@ static int create_sys_files(struct languages *lang_head,
DBUG_RETURN
(
1
);
}
outfile_end
=
strxmov
(
outfile
,
DATADIR
,
outfile_end
=
strxmov
(
outfile
,
DATADIR
ECTORY
,
tmp_lang
->
lang_long_name
,
NullS
);
if
(
!
my_stat
(
outfile
,
&
stat_info
,
MYF
(
0
)))
{
...
...
innobase/ut/ut0ut.c
View file @
c9b20854
...
...
@@ -82,10 +82,17 @@ ut_usectime(
ulint
*
sec
,
/* out: seconds since the Epoch */
ulint
*
ms
)
/* out: microseconds since the Epoch+*sec */
{
#ifdef __WIN__
SYSTEMTIME
st
;
GetLocalTime
(
&
st
);
*
sec
=
(
ulint
)
st
.
wSecond
;
*
ms
=
(
ulint
)
st
.
wMilliseconds
;
#else
struct
timeval
tv
;
gettimeofday
(
&
tv
,
NULL
);
*
sec
=
(
ulint
)
tv
.
tv_sec
;
*
ms
=
(
ulint
)
tv
.
tv_usec
;
#endif
}
/**************************************************************
...
...
libmysql/libmysql.c
View file @
c9b20854
...
...
@@ -1740,7 +1740,7 @@ static int stmt_read_row_no_data(MYSQL_STMT *stmt, unsigned char **row);
STMT_ATTR_UPDATE_MAX_LENGTH attribute is set.
*/
static
void
stmt_update_metadata
(
MYSQL_STMT
*
stmt
,
MYSQL_ROWS
*
data
);
static
bool
setup_one_fetch_function
(
MYSQL_BIND
*
bind
,
MYSQL_FIELD
*
field
);
static
my_
bool
setup_one_fetch_function
(
MYSQL_BIND
*
bind
,
MYSQL_FIELD
*
field
);
/*
Maximum sizes of MYSQL_TYPE_DATE, MYSQL_TYPE_TIME, MYSQL_TYPE_DATETIME
...
...
@@ -3718,7 +3718,7 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
longlongstore
(
buffer
,
data
);
}
*
param
->
error
=
value
!=
(
param
->
is_unsigned
?
(
double
)
(
*
(
ulonglong
*
)
buffer
)
:
ulonglong2double
(
*
(
ulonglong
*
)
buffer
)
:
(
double
)
(
*
(
longlong
*
)
buffer
));
break
;
case
MYSQL_TYPE_FLOAT
:
...
...
sql/field.h
View file @
c9b20854
...
...
@@ -1228,7 +1228,7 @@ class Field_bit :public Field {
int
cmp
(
const
char
*
a
,
const
char
*
b
)
{
return
cmp_binary
(
a
,
b
);
}
int
key_cmp
(
const
byte
*
a
,
const
byte
*
b
)
{
return
cmp_binary
(
a
,
b
);
}
{
return
cmp_binary
(
(
char
*
)
a
,
(
char
*
)
b
);
}
int
key_cmp
(
const
byte
*
str
,
uint
length
);
int
cmp_offset
(
uint
row_offset
);
void
get_key_image
(
char
*
buff
,
uint
length
,
imagetype
type
);
...
...
sql/item_sum.cc
View file @
c9b20854
...
...
@@ -1234,7 +1234,7 @@ int composite_key_cmp(void* arg, byte* key1, byte* key2)
{
Field
*
f
=
*
field
;
int
len
=
*
lengths
++
;
int
res
=
f
->
cmp
(
key1
,
key2
);
int
res
=
f
->
cmp
(
(
char
*
)
key1
,
(
char
*
)
key2
);
if
(
res
)
return
res
;
key1
+=
len
;
...
...
@@ -1688,7 +1688,7 @@ int group_concat_key_cmp_with_distinct(void* arg, byte* key1,
{
int
res
;
uint
offset
=
(
uint
)
(
field
->
ptr
-
record
);
if
((
res
=
field
->
cmp
(
key1
+
offset
,
key2
+
offset
)))
if
((
res
=
field
->
cmp
(
(
char
*
)
key1
+
offset
,
(
char
*
)
key2
+
offset
)))
return
res
;
}
}
...
...
@@ -1722,7 +1722,7 @@ int group_concat_key_cmp_with_order(void* arg, byte* key1, byte* key2)
{
int
res
;
uint
offset
=
(
uint
)
(
field
->
ptr
-
record
);
if
((
res
=
field
->
cmp
(
key1
+
offset
,
key2
+
offset
)))
if
((
res
=
field
->
cmp
(
(
char
*
)
key1
+
offset
,
(
char
*
)
key2
+
offset
)))
return
(
*
order_item
)
->
asc
?
res
:
-
res
;
}
}
...
...
sql/key.cc
View file @
c9b20854
...
...
@@ -135,7 +135,7 @@ void key_copy(byte *to_key, byte *from_record, KEY *key_info, uint key_length)
{
key_length
-=
HA_KEY_BLOB_LENGTH
;
length
=
min
(
key_length
,
key_part
->
length
);
key_part
->
field
->
get_key_image
(
to_key
,
length
,
Field
::
itRAW
);
key_part
->
field
->
get_key_image
(
(
char
*
)
to_key
,
length
,
Field
::
itRAW
);
to_key
+=
HA_KEY_BLOB_LENGTH
;
}
else
...
...
@@ -217,7 +217,7 @@ void key_restore(byte *to_record, byte *from_key, KEY *key_info,
{
key_length
-=
HA_KEY_BLOB_LENGTH
;
length
=
min
(
key_length
,
key_part
->
length
);
key_part
->
field
->
set_key_image
(
from_key
,
length
);
key_part
->
field
->
set_key_image
(
(
char
*
)
from_key
,
length
);
from_key
+=
HA_KEY_BLOB_LENGTH
;
}
else
...
...
sql/opt_range.cc
View file @
c9b20854
...
...
@@ -1891,7 +1891,7 @@ double get_sweep_read_cost(const PARAM *param, ha_rows records)
else
{
double
n_blocks
=
ceil
(
(
double
)
param
->
table
->
file
->
data_file_length
/
IO_SIZE
);
ceil
(
ulonglong2double
(
param
->
table
->
file
->
data_file_length
)
/
IO_SIZE
);
double
busy_blocks
=
n_blocks
*
(
1.0
-
pow
(
1.0
-
1.0
/
n_blocks
,
rows2double
(
records
)));
if
(
busy_blocks
<
1.0
)
...
...
sql/sql_acl.cc
View file @
c9b20854
...
...
@@ -1494,12 +1494,12 @@ static bool update_user_table(THD *thd, const char *host, const char *user,
DBUG_RETURN
(
1
);
/* purecov: deadcode */
table
->
field
[
0
]
->
store
(
host
,(
uint
)
strlen
(
host
),
system_charset_info
);
table
->
field
[
1
]
->
store
(
user
,(
uint
)
strlen
(
user
),
system_charset_info
);
key_copy
(
user_key
,
table
->
record
[
0
],
table
->
key_info
,
key_copy
(
(
byte
*
)
user_key
,
table
->
record
[
0
],
table
->
key_info
,
table
->
key_info
->
key_length
);
table
->
file
->
extra
(
HA_EXTRA_RETRIEVE_ALL_COLS
);
if
(
table
->
file
->
index_read_idx
(
table
->
record
[
0
],
0
,
user_key
,
table
->
key_info
->
key_length
,
(
byte
*
)
user_key
,
table
->
key_info
->
key_length
,
HA_READ_KEY_EXACT
))
{
my_message
(
ER_PASSWORD_NO_MATCH
,
ER
(
ER_PASSWORD_NO_MATCH
),
...
...
sql/table.cc
View file @
c9b20854
...
...
@@ -305,7 +305,7 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
if
(
!
(
record
=
(
char
*
)
alloc_root
(
&
outparam
->
mem_root
,
rec_buff_length
*
records
)))
goto
err
;
/* purecov: inspected */
share
->
default_values
=
record
;
share
->
default_values
=
(
byte
*
)
record
;
if
(
my_pread
(
file
,(
byte
*
)
record
,
(
uint
)
share
->
reclength
,
(
ulong
)
(
uint2korr
(
head
+
6
)
+
((
uint2korr
(
head
+
14
)
==
0xffff
?
...
...
@@ -320,9 +320,9 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
}
else
{
outparam
->
record
[
0
]
=
record
+
rec_buff_length
;
outparam
->
record
[
0
]
=
(
byte
*
)
record
+
rec_buff_length
;
if
(
records
>
2
)
outparam
->
record
[
1
]
=
record
+
rec_buff_length
*
2
;
outparam
->
record
[
1
]
=
(
byte
*
)
record
+
rec_buff_length
*
2
;
else
outparam
->
record
[
1
]
=
outparam
->
record
[
0
];
// Safety
}
...
...
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