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
d3a67330
Commit
d3a67330
authored
Sep 25, 2006
by
jpipes@shakedown.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug #21466: INET_ATON() returns signed int, not unsigned
parent
987b1b59
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+7
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+7
-0
sql/item_func.h
sql/item_func.h
+1
-1
No files found.
mysql-test/r/func_misc.result
View file @
d3a67330
...
...
@@ -134,4 +134,11 @@ timediff(b, a) >= '00:00:03'
drop table t2;
drop table t1;
set global query_cache_size=default;
create table t1 select INET_ATON('255.255.0.1') as `a`;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` bigint(21) unsigned default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
End of 5.0 tests
mysql-test/t/func_misc.test
View file @
d3a67330
...
...
@@ -125,4 +125,11 @@ drop table t2;
drop
table
t1
;
set
global
query_cache_size
=
default
;
#
# Bug #21466: INET_ATON() returns signed, not unsigned
#
create
table
t1
select
INET_ATON
(
'255.255.0.1'
)
as
`a`
;
show
create
table
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
sql/item_func.h
View file @
d3a67330
...
...
@@ -1289,7 +1289,7 @@ class Item_func_inet_aton : public Item_int_func
Item_func_inet_aton
(
Item
*
a
)
:
Item_int_func
(
a
)
{}
longlong
val_int
();
const
char
*
func_name
()
const
{
return
"inet_aton"
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
21
;
maybe_null
=
1
;}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
21
;
maybe_null
=
1
;
unsigned_flag
=
1
;
}
};
...
...
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