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
447baa90
Commit
447baa90
authored
Mar 26, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fixes + simple optimizations
parent
e0e0314d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
mysql-test/r/alter_table.result
mysql-test/r/alter_table.result
+1
-1
mysql-test/r/drop_temp_table.result
mysql-test/r/drop_temp_table.result
+2
-2
mysql-test/r/union.result
mysql-test/r/union.result
+1
-1
sql/sql_db.cc
sql/sql_db.cc
+5
-5
sql/sql_union.cc
sql/sql_union.cc
+1
-1
No files found.
mysql-test/r/alter_table.result
View file @
447baa90
...
@@ -121,7 +121,7 @@ create database mysqltest;
...
@@ -121,7 +121,7 @@ create database mysqltest;
create table mysqltest.t1 (a int,b int,c int);
create table mysqltest.t1 (a int,b int,c int);
grant all on mysqltest.t1 to mysqltest_1@localhost;
grant all on mysqltest.t1 to mysqltest_1@localhost;
alter table t1 rename t2;
alter table t1 rename t2;
insert command denied to user: 'mysqltest_1@
localhost' for table 't2'
ERROR 42000: insert command denied to user: 'mysqltest_1'@'
localhost' for table 't2'
revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
delete from mysql.user where user='mysqltest_1';
delete from mysql.user where user='mysqltest_1';
drop database mysqltest;
drop database mysqltest;
...
...
mysql-test/r/drop_temp_table.result
View file @
447baa90
...
@@ -13,6 +13,6 @@ Log_name Pos Event_type Server_id Orig_log_pos Info
...
@@ -13,6 +13,6 @@ Log_name Pos Event_type Server_id Orig_log_pos Info
master-bin.000001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
master-bin.000001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
master-bin.000001 79 Query 1 79 use `test`; create database `drop-temp+table-test`
master-bin.000001 79 Query 1 79 use `test`; create database `drop-temp+table-test`
master-bin.000001 152 Query 1 152 use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.000001 152 Query 1 152 use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.000001 246 Query 1 246 use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE `drop-temp+table-test`.`table:name`
master-bin.000001 246 Query 1 246 use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE
IF EXISTS
`drop-temp+table-test`.`table:name`
master-bin.000001 3
65 Query 1 36
5 use `drop-temp+table-test`; DO RELEASE_LOCK("a")
master-bin.000001 3
75 Query 1 37
5 use `drop-temp+table-test`; DO RELEASE_LOCK("a")
drop database `drop-temp+table-test`;
drop database `drop-temp+table-test`;
mysql-test/r/union.result
View file @
447baa90
...
@@ -435,7 +435,7 @@ drop temporary table t1;
...
@@ -435,7 +435,7 @@ drop temporary table t1;
create table t1 select a from t1 union select a from t2;
create table t1 select a from t1 union select a from t2;
ERROR HY000: You can't specify target table 't1' for update in FROM clause
ERROR HY000: You can't specify target table 't1' for update in FROM clause
select a from t1 union select a from t2 order by t2.a;
select a from t1 union select a from t2 order by t2.a;
Unknown column 't2.a' in 'ORDER BY'
ERROR 42S22:
Unknown column 't2.a' in 'ORDER BY'
drop table t1,t2;
drop table t1,t2;
select length(version()) > 1 as `*` UNION select 2;
select length(version()) > 1 as `*` UNION select 2;
*
*
...
...
sql/sql_db.cc
View file @
447baa90
...
@@ -164,9 +164,9 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
...
@@ -164,9 +164,9 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
bool
silent
)
bool
silent
)
{
{
char
path
[
FN_REFLEN
+
16
];
char
path
[
FN_REFLEN
+
16
];
MY_DIR
*
dirp
;
long
result
=
1
;
long
result
=
1
;
int
error
=
0
;
int
error
=
0
;
MY_STAT
stat_info
;
uint
create_options
=
create_info
?
create_info
->
options
:
0
;
uint
create_options
=
create_info
?
create_info
->
options
:
0
;
DBUG_ENTER
(
"mysql_create_db"
);
DBUG_ENTER
(
"mysql_create_db"
);
...
@@ -180,12 +180,12 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
...
@@ -180,12 +180,12 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
}
}
/* Check directory */
/* Check directory */
(
void
)
sprintf
(
path
,
"%s/%s"
,
mysql_data_home
,
db
);
strxmov
(
path
,
mysql_data_home
,
"/"
,
db
,
NullS
);
unpack_dirname
(
path
,
path
);
// Convert if not unix
unpack_dirname
(
path
,
path
);
// Convert if not unix
if
((
dirp
=
my_dir
(
path
,
MYF
(
MY_DONT_SORT
))))
if
(
my_stat
(
path
,
&
stat_info
,
MYF
(
MY_WME
)))
{
{
my_dirend
(
dirp
);
if
(
!
(
create_options
&
HA_LEX_CREATE_IF_NOT_EXISTS
))
if
(
!
(
create_options
&
HA_LEX_CREATE_IF_NOT_EXISTS
))
{
{
my_error
(
ER_DB_CREATE_EXISTS
,
MYF
(
0
),
db
);
my_error
(
ER_DB_CREATE_EXISTS
,
MYF
(
0
),
db
);
error
=
-
1
;
error
=
-
1
;
...
...
sql/sql_union.cc
View file @
447baa90
...
@@ -210,7 +210,7 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
...
@@ -210,7 +210,7 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
for
(
tmp_order
=
(
ORDER
*
)
global_parameters
->
order_list
.
first
;
for
(
tmp_order
=
(
ORDER
*
)
global_parameters
->
order_list
.
first
;
tmp_order
;
tmp_order
;
tmp_order
=
tmp_order
->
next
;
tmp_order
=
tmp_order
->
next
)
{
{
Item
*
item
=
*
tmp_order
->
item
;
Item
*
item
=
*
tmp_order
->
item
;
if
(((
item
->
type
()
==
Item
::
FIELD_ITEM
)
&&
if
(((
item
->
type
()
==
Item
::
FIELD_ITEM
)
&&
...
...
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