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
696e484f
Commit
696e484f
authored
Jul 21, 2008
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
Auto merge
parents
f47e96a2
218c71c8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
9 deletions
+40
-9
client/mysql.cc
client/mysql.cc
+31
-0
mysql-test/r/client_xml.result
mysql-test/r/client_xml.result
+1
-0
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+0
-2
mysql-test/t/client_xml.test
mysql-test/t/client_xml.test
+4
-0
mysql-test/t/mysql_delimiter.sql
mysql-test/t/mysql_delimiter.sql
+0
-6
mysys/default.c
mysys/default.c
+1
-1
sql/ha_federated.cc
sql/ha_federated.cc
+3
-0
No files found.
client/mysql.cc
View file @
696e484f
...
...
@@ -2081,6 +2081,37 @@ static bool add_line(String &buffer,char *line,char *in_string,
continue
;
}
}
else
if
(
!*
ml_comment
&&
!*
in_string
&&
(
end_of_line
-
pos
)
>=
10
&&
!
my_strnncoll
(
charset_info
,
(
uchar
*
)
pos
,
10
,
(
const
uchar
*
)
"delimiter "
,
10
))
{
// Flush previously accepted characters
if
(
out
!=
line
)
{
buffer
.
append
(
line
,
(
uint32
)
(
out
-
line
));
out
=
line
;
}
// Flush possible comments in the buffer
if
(
!
buffer
.
is_empty
())
{
if
(
com_go
(
&
buffer
,
0
)
>
0
)
// < 0 is not fatal
DBUG_RETURN
(
1
);
buffer
.
length
(
0
);
}
/*
Delimiter wants the get rest of the given line as argument to
allow one to change ';' to ';;' and back
*/
buffer
.
append
(
pos
);
if
(
com_delimiter
(
&
buffer
,
pos
)
>
0
)
DBUG_RETURN
(
1
);
buffer
.
length
(
0
);
break
;
}
else
if
(
!*
ml_comment
&&
!*
in_string
&&
is_prefix
(
pos
,
delimiter
))
{
// Found a statement. Continue parsing after the delimiter
...
...
mysql-test/r/client_xml.result
View file @
696e484f
drop table if exists t1;
create table t1 (
`a&b` int,
`a<b` int,
...
...
mysql-test/r/mysql.result
View file @
696e484f
...
...
@@ -38,8 +38,6 @@ t2
t3
Tables_in_test
t1
delimiter
1
_
Test delimiter : from command line
a
...
...
mysql-test/t/client_xml.test
View file @
696e484f
# Can't run with embedded server
--
source
include
/
not_embedded
.
inc
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
# Test of the xml output of the 'mysql' and 'mysqldump' clients -- makes
# sure that basic encoding issues are handled properly
create
table
t1
(
...
...
mysql-test/t/mysql_delimiter.sql
View file @
696e484f
...
...
@@ -60,12 +60,6 @@ use test//
show
tables
//
delimiter
;
#
Reset
delimiter
#
#
Bug
#
33812
:
mysql
client
incorrectly
parsing
DELIMITER
#
select
a
as
delimiter
from
t1
delimiter
;
#
Reset
delimiter
#
#
Bug
#
36244
:
MySQL
CLI
doesn
't recognize standalone -- as comment
# before DELIMITER statement
...
...
mysys/default.c
View file @
696e484f
...
...
@@ -1017,7 +1017,7 @@ static const char *my_get_module_parent(char *buf, size_t size)
{
char
*
last
=
NULL
;
char
*
end
;
if
(
!
GetModuleFileName
(
NULL
,
buf
,
size
))
if
(
!
GetModuleFileName
(
NULL
,
buf
,
(
DWORD
)
size
))
return
NULL
;
end
=
strend
(
buf
);
...
...
sql/ha_federated.cc
View file @
696e484f
...
...
@@ -405,6 +405,9 @@ static byte *federated_get_key(FEDERATED_SHARE *share, uint *length,
bool
federated_db_init
()
{
DBUG_ENTER
(
"federated_db_init"
);
/* the federated engine can be disabled by a command line option */
if
(
have_federated_db
==
SHOW_OPTION_DISABLED
)
DBUG_RETURN
(
TRUE
);
if
(
pthread_mutex_init
(
&
federated_mutex
,
MY_MUTEX_INIT_FAST
))
goto
error
;
if
(
hash_init
(
&
federated_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
...
...
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