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
88afe505
Commit
88afe505
authored
Feb 19, 2005
by
georg@beethoven.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge grichter@bk-internal.mysql.com:/home/bk/mysql-5.0
into beethoven.site:/home/georg/work/mysql/mysql-5.0
parents
040490aa
26e3685b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
8 deletions
+24
-8
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
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 @
88afe505
...
...
@@ -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 @
88afe505
...
...
@@ -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 @
88afe505
...
...
@@ -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
...
...
sql/field.cc
View file @
88afe505
...
...
@@ -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 @
88afe505
...
...
@@ -453,7 +453,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 @
88afe505
...
...
@@ -1732,7 +1732,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 @
88afe505
...
...
@@ -578,7 +578,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
));
}
...
...
@@ -613,7 +613,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 @
88afe505
...
...
@@ -2019,7 +2019,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 @
88afe505
...
...
@@ -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