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
717452fe
Commit
717452fe
authored
Jan 16, 2007
by
kostja@bodhi.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge bodhi.local:/opt/local/work/mysql-5.1-root
into bodhi.local:/opt/local/work/mysql-5.1-runtime
parents
33b86905
df18e193
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
mysql-test/r/view.result
mysql-test/r/view.result
+9
-0
mysql-test/t/view.test
mysql-test/t/view.test
+15
-1
sql/sql_string.cc
sql/sql_string.cc
+2
-2
No files found.
mysql-test/r/view.result
View file @
717452fe
...
...
@@ -3014,6 +3014,15 @@ i j
6 3
DROP VIEW v1, v2;
DROP TABLE t1;
DROP VIEW IF EXISTS v1;
CREATE VIEW v1 AS SELECT 'The\ZEnd';
SELECT * FROM v1;
TheEnd
TheEnd
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select _latin1'The\ZEnd' AS `TheEnd`
DROP VIEW v1;
End of 5.0 tests.
DROP DATABASE IF EXISTS `d-1`;
CREATE DATABASE `d-1`;
...
...
mysql-test/t/view.test
View file @
717452fe
...
...
@@ -2906,6 +2906,7 @@ DROP FUNCTION f1;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
#
# Bug #16813 (WITH CHECK OPTION doesn't work with UPDATE)
#
CREATE
TABLE
t1
(
id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
val
INT
UNSIGNED
NOT
NULL
);
...
...
@@ -2919,7 +2920,6 @@ UPDATE v1 SET val=6 WHERE id=2;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
#
# BUG#22584: last_insert_id not updated after inserting a record
# through a updatable view
...
...
@@ -2957,6 +2957,20 @@ SELECT * FROM t1;
DROP
VIEW
v1
,
v2
;
DROP
TABLE
t1
;
#
# BUG#24293: '\Z' token is not handled correctly in views
#
--
disable_warnings
DROP
VIEW
IF
EXISTS
v1
;
--
enable_warnings
CREATE
VIEW
v1
AS
SELECT
'The\ZEnd'
;
SELECT
*
FROM
v1
;
SHOW
CREATE
VIEW
v1
;
DROP
VIEW
v1
;
--
echo
End
of
5.0
tests
.
...
...
sql/sql_string.cc
View file @
717452fe
...
...
@@ -1022,8 +1022,8 @@ void String::print(String *str)
case
'\r'
:
str
->
append
(
STRING_WITH_LEN
(
"
\\
r"
));
break
;
case
26
:
//
Ctrl-Z
str
->
append
(
STRING_WITH_LEN
(
"
\\
z
"
));
case
'\032'
:
//
Ctrl-Z
str
->
append
(
STRING_WITH_LEN
(
"
\\
Z
"
));
break
;
default:
str
->
append
(
c
);
...
...
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