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
5bfcabf7
Commit
5bfcabf7
authored
Feb 19, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
parents
88d2e297
88afe505
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
20 deletions
+27
-20
VC++Files/libmysqld/libmysqld.dsp
VC++Files/libmysqld/libmysqld.dsp
+4
-0
VC++Files/sql/mysqld.dsp
VC++Files/sql/mysqld.dsp
+4
-0
VC++Files/strings/strings.dsp
VC++Files/strings/strings.dsp
+4
-0
ndb/src/common/util/NdbSqlUtil.cpp
ndb/src/common/util/NdbSqlUtil.cpp
+3
-12
sql/field.cc
sql/field.cc
+3
-3
sql/item.h
sql/item.h
+4
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+2
-2
sql/sp_head.cc
sql/sp_head.cc
+1
-1
sql/sql_cache.cc
sql/sql_cache.cc
+1
-1
No files found.
VC++Files/libmysqld/libmysqld.dsp
View file @
5bfcabf7
...
...
@@ -344,6 +344,10 @@ SOURCE=..\mysys\my_alloc.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_decimal.cpp
# End Source File
# Begin Source File
SOURCE=..\mysys\my_getopt.c
# End Source File
# Begin Source File
...
...
VC++Files/sql/mysqld.dsp
View file @
5bfcabf7
...
...
@@ -1085,6 +1085,10 @@ SOURCE=.\mf_iocache.cpp
# End Source File
# Begin Source File
SOURCE=.\my_decimal.cpp
# End Source File
# Begin Source File
SOURCE=.\my_time.c
# End Source File
# Begin Source File
...
...
VC++Files/strings/strings.dsp
View file @
5bfcabf7
...
...
@@ -177,6 +177,10 @@ SOURCE=.\ctype.c
# End Source File
# Begin Source File
SOURCE=.\decimal.c
# End Source File
# Begin Source File
SOURCE=.\int2str.c
# End Source File
# Begin Source File
...
...
ndb/src/common/util/NdbSqlUtil.cpp
View file @
5bfcabf7
...
...
@@ -633,17 +633,8 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
}
#else
char
t1
[
4
],
t2
[
4
];
if
(
n1
==
3
&&
n2
==
3
)
{
memcpy
(
t1
,
p1
,
3
);
memcpy
(
t2
,
p2
,
3
);
p1
=
t1
;
p2
=
t2
;
n1
=
n2
=
4
;
}
#ifdef ndb_date_sol9x86_cc_xO3_madness
if
(
n2
>=
4
)
{
// may access 4-th byte
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
// from Field_newdate::val_int
...
...
@@ -658,7 +649,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
}
#else
if
(
n2
>=
4
)
{
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
uint
j1
=
uint3korr
(
v1
);
...
...
@@ -712,7 +703,7 @@ NdbSqlUtil::cmpText(const void* info, const void* p1, unsigned n1, const void* p
int
NdbSqlUtil
::
cmpTime
(
const
void
*
info
,
const
void
*
p1
,
unsigned
n1
,
const
void
*
p2
,
unsigned
n2
,
bool
full
)
{
if
(
n2
>=
4
)
{
// may access 4-th byte
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
// from Field_time::val_int
...
...
sql/field.cc
View file @
5bfcabf7
...
...
@@ -1581,10 +1581,10 @@ bool Field_new_decimal::store_value(const my_decimal *decimal_value)
DBUG_PRINT
(
"info"
,
(
"overflow"
));
set_value_on_overflow
(
&
buff
,
dec
->
sign
());
my_decimal2binary
(
E_DEC_FATAL_ERROR
,
&
buff
,
ptr
,
field_length
,
decimals
());
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
&
buff
,
ptr
,
bin_size
););
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
&
buff
,
(
byte
*
)
ptr
,
bin_size
););
DBUG_RETURN
(
1
);
}
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
dec
,
ptr
,
bin_size
););
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
dec
,
(
byte
*
)
ptr
,
bin_size
););
DBUG_RETURN
(
error
);
}
...
...
@@ -1708,7 +1708,7 @@ my_decimal* Field_new_decimal::val_decimal(my_decimal *decimal_value)
binary2my_decimal
(
E_DEC_FATAL_ERROR
,
ptr
,
decimal_value
,
field_length
,
decimals
());
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
decimal_value
,
ptr
,
bin_size
););
DBUG_EXECUTE
(
"info"
,
print_decimal_buff
(
decimal_value
,
(
byte
*
)
ptr
,
bin_size
););
DBUG_RETURN
(
decimal_value
);
}
...
...
sql/item.h
View file @
5bfcabf7
...
...
@@ -463,7 +463,11 @@ class Item_splocal : public Item
longlong
val_int
();
String
*
val_str
(
String
*
sp
);
my_decimal
*
val_decimal
(
my_decimal
*
);
#ifdef __WIN__
bool
is_null
();
#else
inline
bool
is_null
();
#endif
void
print
(
String
*
str
);
inline
void
make_field
(
Send_field
*
field
)
...
...
sql/item_func.cc
View file @
5bfcabf7
...
...
@@ -1743,7 +1743,7 @@ longlong Item_func_round::int_op()
if
(
truncate
)
{
if
(
unsigned_flag
)
tmp2
=
floor
(
((
double
)((
ulonglong
)
value
)
)
/
tmp
)
*
tmp
;
tmp2
=
floor
(
ulonglong2double
(
value
)
/
tmp
)
*
tmp
;
else
if
(
value
>=
0
)
tmp2
=
floor
(((
double
)
value
)
/
tmp
)
*
tmp
;
else
...
...
sql/item_sum.cc
View file @
5bfcabf7
...
...
@@ -556,7 +556,7 @@ bool Item_sum_sum_distinct::add()
{
DBUG_ASSERT
(
tree
);
null_value
=
0
;
my_decimal2binary
(
E_DEC_FATAL_ERROR
,
val
,
dec_bin_buff
,
my_decimal2binary
(
E_DEC_FATAL_ERROR
,
val
,
(
char
*
)
dec_bin_buff
,
args
[
0
]
->
max_length
,
args
[
0
]
->
decimals
);
DBUG_RETURN
(
tree
->
unique_add
(
dec_bin_buff
));
}
...
...
@@ -591,7 +591,7 @@ void Item_sum_sum_distinct::add_real(double val)
void
Item_sum_sum_distinct
::
add_decimal
(
byte
*
val
)
{
binary2my_decimal
(
E_DEC_FATAL_ERROR
,
val
,
&
tmp_dec
,
binary2my_decimal
(
E_DEC_FATAL_ERROR
,
(
char
*
)
val
,
&
tmp_dec
,
args
[
0
]
->
max_length
,
args
[
0
]
->
decimals
);
my_decimal_add
(
E_DEC_FATAL_ERROR
,
dec_buffs
+
(
curr_dec_buff
^
1
),
&
tmp_dec
,
dec_buffs
+
curr_dec_buff
);
...
...
sql/sp_head.cc
View file @
5bfcabf7
...
...
@@ -1963,7 +1963,7 @@ sp_merge_table_hash(HASH *hdst, HASH *hsrc)
SP_TABLE
*
tabsrc
=
(
SP_TABLE
*
)
hash_element
(
hsrc
,
i
);
if
(
!
(
tabdst
=
(
SP_TABLE
*
)
hash_search
(
hdst
,
tabsrc
->
qname
.
str
,
(
byte
*
)
tabsrc
->
qname
.
str
,
tabsrc
->
qname
.
length
)))
{
my_hash_insert
(
hdst
,
(
byte
*
)
tabsrc
);
...
...
sql/sql_cache.cc
View file @
5bfcabf7
...
...
@@ -1102,7 +1102,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
(
"Handler require invalidation queries of %s.%s %lld-%lld"
,
table_list
.
db
,
table_list
.
alias
,
engine_data
,
table
->
engine_data
()));
invalidate_table
(
table
->
db
(),
table
->
key_length
());
invalidate_table
(
(
byte
*
)
table
->
db
(),
table
->
key_length
());
}
else
thd
->
lex
->
safe_to_cache_query
=
0
;
// Don't try to cache this
...
...
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