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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e4b3d6fa
Commit
e4b3d6fa
authored
Aug 07, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
fcf253dd
eb45da04
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
5 deletions
+15
-5
Docs/manual.texi
Docs/manual.texi
+4
-0
mysql-test/r/create.result
mysql-test/r/create.result
+2
-0
mysql-test/t/create.test
mysql-test/t/create.test
+2
-0
sql/item_func.h
sql/item_func.h
+5
-0
sql/item_timefunc.h
sql/item_timefunc.h
+0
-5
sql/sql_acl.cc
sql/sql_acl.cc
+2
-0
No files found.
Docs/manual.texi
View file @
e4b3d6fa
...
@@ -50147,6 +50147,10 @@ each individual 4.0.x release.
...
@@ -50147,6 +50147,10 @@ each individual 4.0.x release.
@itemize @bullet
@itemize @bullet
@item
@item
Fixed security bug in database hash
@item
Fixed create table from any ITEM_FUNC and reverted a patch for month()
@item
Fixed bug in query cache after temporary table creation.
Fixed bug in query cache after temporary table creation.
@item
@item
Added --count=N (-c) to mysqladmin, to be used with -i (--sleep). When used,
Added --count=N (-c) to mysqladmin, to be used with -i (--sleep). When used,
mysql-test/r/create.result
View file @
e4b3d6fa
...
@@ -134,3 +134,5 @@ t1 CREATE TABLE `t1` (
...
@@ -134,3 +134,5 @@ t1 CREATE TABLE `t1` (
KEY `b_31` (`b`)
KEY `b_31` (`b`)
) TYPE=MyISAM
) TYPE=MyISAM
drop table t1;
drop table t1;
create table t1 select if(1,'1','0'), month("2002-08-02");
drop table t1;
mysql-test/t/create.test
View file @
e4b3d6fa
...
@@ -89,3 +89,5 @@ drop table t1,t2;
...
@@ -89,3 +89,5 @@ drop table t1,t2;
create
table
t1
(
a
int
not
null
,
b
int
,
primary
key
(
a
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
));
create
table
t1
(
a
int
not
null
,
b
int
,
primary
key
(
a
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
),
key
(
b
));
show
create
table
t1
;
show
create
table
t1
;
drop
table
t1
;
drop
table
t1
;
create
table
t1
select
if
(
1
,
'1'
,
'0'
),
month
(
"2002-08-02"
);
drop
table
t1
;
sql/item_func.h
View file @
e4b3d6fa
...
@@ -122,6 +122,11 @@ public:
...
@@ -122,6 +122,11 @@ public:
bool
is_null
()
{
(
void
)
val_int
();
return
null_value
;
}
bool
is_null
()
{
(
void
)
val_int
();
return
null_value
;
}
friend
class
udf_handler
;
friend
class
udf_handler
;
unsigned
int
size_of
()
{
return
sizeof
(
*
this
);}
unsigned
int
size_of
()
{
return
sizeof
(
*
this
);}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
if
(
!
t_arg
)
return
result_field
;
return
(
Field
*
)
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
binary
);
}
};
};
...
...
sql/item_timefunc.h
View file @
e4b3d6fa
...
@@ -71,11 +71,6 @@ public:
...
@@ -71,11 +71,6 @@ public:
const
char
*
func_name
()
const
{
return
"month"
;
}
const
char
*
func_name
()
const
{
return
"month"
;
}
enum
Item_result
result_type
()
const
{
return
INT_RESULT
;
}
enum
Item_result
result_type
()
const
{
return
INT_RESULT
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
2
;
maybe_null
=
1
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
2
;
maybe_null
=
1
;
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
if
(
!
t_arg
)
return
result_field
;
return
(
Field
*
)
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
binary
);
}
};
};
class
Item_func_monthname
:
public
Item_func_month
class
Item_func_monthname
:
public
Item_func_month
...
...
sql/sql_acl.cc
View file @
e4b3d6fa
...
@@ -321,6 +321,8 @@ int acl_init(bool dont_read_acl_tables)
...
@@ -321,6 +321,8 @@ int acl_init(bool dont_read_acl_tables)
ACL_DB
db
;
ACL_DB
db
;
update_hostname
(
&
db
.
host
,
get_field
(
&
mem
,
table
,
0
));
update_hostname
(
&
db
.
host
,
get_field
(
&
mem
,
table
,
0
));
db
.
db
=
get_field
(
&
mem
,
table
,
1
);
db
.
db
=
get_field
(
&
mem
,
table
,
1
);
if
(
!
db
.
db
||
!
db
.
db
[
0
])
continue
;
db
.
user
=
get_field
(
&
mem
,
table
,
2
);
db
.
user
=
get_field
(
&
mem
,
table
,
2
);
db
.
access
=
get_access
(
table
,
3
);
db
.
access
=
get_access
(
table
,
3
);
db
.
access
=
fix_rights_for_db
(
db
.
access
);
db
.
access
=
fix_rights_for_db
(
db
.
access
);
...
...
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