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
6fd52639
Commit
6fd52639
authored
Feb 25, 2006
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge monty@192.168.0.9:/my/mysql-5.0
into mysql.com:/home/my/mysql-5.0
parents
aa4128f8
dd1d40f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
mysql-test/t/binlog.test
mysql-test/t/binlog.test
+2
-2
sql/sql_db.cc
sql/sql_db.cc
+4
-3
tests/mysql_client_test.c
tests/mysql_client_test.c
+2
-2
No files found.
mysql-test/t/binlog.test
View file @
6fd52639
...
@@ -19,7 +19,7 @@ begin;
...
@@ -19,7 +19,7 @@ begin;
insert
t2
values
(
5
);
insert
t2
values
(
5
);
commit
;
commit
;
# first COMMIT must be Query_log_event, second - Xid_log_event
# first COMMIT must be Query_log_event, second - Xid_log_event
--
replace_result
"xid=
19
"
"xid=12"
--
replace_result
"xid=
21
"
"xid=12"
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
show
binlog
events
from
98
;
show
binlog
events
from
98
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
...
@@ -41,7 +41,7 @@ while ($1)
...
@@ -41,7 +41,7 @@ while ($1)
--
enable_query_log
--
enable_query_log
commit
;
commit
;
drop
table
t1
;
drop
table
t1
;
--
replace_result
"xid=3
0
"
"xid=19"
--
replace_result
"xid=3
2
"
"xid=19"
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
show
binlog
events
in
'master-bin.000001'
from
98
;
show
binlog
events
in
'master-bin.000001'
from
98
;
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
...
...
sql/sql_db.cc
View file @
6fd52639
...
@@ -1109,6 +1109,9 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
...
@@ -1109,6 +1109,9 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
DBUG_ENTER
(
"mysql_change_db"
);
DBUG_ENTER
(
"mysql_change_db"
);
DBUG_PRINT
(
"enter"
,(
"name: '%s'"
,
name
));
DBUG_PRINT
(
"enter"
,(
"name: '%s'"
,
name
));
LINT_INIT
(
db_length
);
LINT_INIT
(
db_access
);
/* dbname can only be NULL if malloc failed */
/* dbname can only be NULL if malloc failed */
if
(
!
dbname
||
!
(
db_length
=
strlen
(
dbname
)))
if
(
!
dbname
||
!
(
db_length
=
strlen
(
dbname
)))
{
{
...
@@ -1126,7 +1129,7 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
...
@@ -1126,7 +1129,7 @@ bool mysql_change_db(THD *thd, const char *name, bool no_access_check)
if
(
check_db_name
(
dbname
))
if
(
check_db_name
(
dbname
))
{
{
my_error
(
ER_WRONG_DB_NAME
,
MYF
(
0
),
dbname
);
my_error
(
ER_WRONG_DB_NAME
,
MYF
(
0
),
dbname
);
x_free
(
dbname
);
my_free
(
dbname
,
MYF
(
0
)
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
DBUG_PRINT
(
"info"
,(
"Use database: %s"
,
dbname
));
DBUG_PRINT
(
"info"
,(
"Use database: %s"
,
dbname
));
...
@@ -1176,8 +1179,6 @@ end:
...
@@ -1176,8 +1179,6 @@ end:
x_free
(
thd
->
db
);
x_free
(
thd
->
db
);
if
(
dbname
&&
dbname
[
0
]
==
0
)
if
(
dbname
&&
dbname
[
0
]
==
0
)
{
{
if
(
!
(
thd
->
slave_thread
))
x_free
(
dbname
);
thd
->
db
=
NULL
;
thd
->
db
=
NULL
;
thd
->
db_length
=
0
;
thd
->
db_length
=
0
;
}
}
...
...
tests/mysql_client_test.c
View file @
6fd52639
...
@@ -14724,9 +14724,9 @@ static void test_bug12744()
...
@@ -14724,9 +14724,9 @@ static void test_bug12744()
mysql_close
(
mysql
);
mysql_close
(
mysql
);
if
(
rc
=
mysql_stmt_execute
(
prep_stmt
))
if
(
(
rc
=
mysql_stmt_execute
(
prep_stmt
)
))
{
{
if
(
rc
=
mysql_stmt_reset
(
prep_stmt
))
if
(
(
rc
=
mysql_stmt_reset
(
prep_stmt
)
))
printf
(
"OK!
\n
"
);
printf
(
"OK!
\n
"
);
else
else
{
{
...
...
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