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
8cf5a4c0
Commit
8cf5a4c0
authored
Aug 01, 2006
by
gkodinov/kgeorge@rakia.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into rakia.(none):/home/kgeorge/mysql/autopush/B20103-5.0-opt
parents
63d198af
7b5e4ed0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
client/mysql.cc
client/mysql.cc
+2
-1
mysql-test/r/mysql_client.result
mysql-test/r/mysql_client.result
+4
-0
mysql-test/t/mysql_client.test
mysql-test/t/mysql_client.test
+11
-0
No files found.
client/mysql.cc
View file @
8cf5a4c0
...
...
@@ -1221,7 +1221,8 @@ static bool add_line(String &buffer,char *line,char *in_string,
continue
;
}
#endif
if
(
!*
ml_comment
&&
inchar
==
'\\'
)
if
(
!*
ml_comment
&&
inchar
==
'\\'
&&
!
(
mysql
.
server_status
&
SERVER_STATUS_NO_BACKSLASH_ESCAPES
))
{
// Found possbile one character command like \c
...
...
mysql-test/r/mysql_client.result
View file @
8cf5a4c0
...
...
@@ -2,3 +2,7 @@
1
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
ERROR at line 1: USE must be followed by a database name
\
\\
';
';
mysql-test/t/mysql_client.test
View file @
8cf5a4c0
...
...
@@ -27,3 +27,14 @@
# client comment recognized, but parameter missing => error
--
exec
echo
"use"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug20432
.
sql
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug20432
.
sql
2
>&
1
#
# Bug #20103: Escaping with backslash does not work
#
--
exec
echo
"SET SQL_MODE = 'NO_BACKSLASH_ESCAPES';"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
--
exec
echo
"SELECT '\';"
>>
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
2
>&
1
--
exec
echo
"SET SQL_MODE = '';"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
--
exec
echo
"SELECT '\';';"
>>
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug20103
.
sql
2
>&
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