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
8009c16a
Commit
8009c16a
authored
Jan 03, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the QUOTE() function.
parent
3cf6a6b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+3
-0
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+1
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
No files found.
BitKeeper/etc/logging_ok
View file @
8009c16a
...
@@ -61,6 +61,7 @@ paul@teton.kitebird.com
...
@@ -61,6 +61,7 @@ paul@teton.kitebird.com
pem@mysql.com
pem@mysql.com
peter@linux.local
peter@linux.local
peter@mysql.com
peter@mysql.com
ram@mysql.r18.ru
ram@ram.(none)
ram@ram.(none)
ranger@regul.home.lan
ranger@regul.home.lan
root@x3.internalnet
root@x3.internalnet
...
...
mysql-test/r/func_str.result
View file @
8009c16a
...
@@ -155,6 +155,9 @@ quote(concat('abc\'', '\\cba'))
...
@@ -155,6 +155,9 @@ quote(concat('abc\'', '\\cba'))
select quote(1/0), quote('\0\Z');
select quote(1/0), quote('\0\Z');
quote(1/0) quote('\0\Z')
quote(1/0) quote('\0\Z')
NULL '\0\Z'
NULL '\0\Z'
select length(quote(concat(char(0),"test")));
length(quote(concat(char(0),"test")))
8
select reverse("");
select reverse("");
reverse("")
reverse("")
...
...
mysql-test/t/func_str.test
View file @
8009c16a
...
@@ -64,6 +64,7 @@ select decode(encode("abcdef","monty"),"monty")="abcdef";
...
@@ -64,6 +64,7 @@ select decode(encode("abcdef","monty"),"monty")="abcdef";
select
quote
(
'\'\"\\test'
);
select
quote
(
'\'\"\\test'
);
select
quote
(
concat
(
'abc\''
,
'\\cba'
));
select
quote
(
concat
(
'abc\''
,
'\\cba'
));
select
quote
(
1
/
0
),
quote
(
'\0\Z'
);
select
quote
(
1
/
0
),
quote
(
'\0\Z'
);
select
length
(
quote
(
concat
(
char
(
0
),
"test"
)));
#
#
# Wrong usage of functions
# Wrong usage of functions
...
...
sql/item_strfunc.cc
View file @
8009c16a
...
@@ -2134,7 +2134,7 @@ String *Item_func_quote::val_str(String *str)
...
@@ -2134,7 +2134,7 @@ String *Item_func_quote::val_str(String *str)
*/
*/
to
=
(
char
*
)
str
->
ptr
()
+
new_length
-
1
;
to
=
(
char
*
)
str
->
ptr
()
+
new_length
-
1
;
*
to
--=
'\''
;
*
to
--=
'\''
;
for
(
start
=
(
char
*
)
arg
->
ptr
()
;
end
--
!=
start
;
to
--
)
for
(
start
=
(
char
*
)
arg
->
ptr
()
,
end
=
start
+
arg_length
;
end
--
!=
start
;
to
--
)
{
{
/*
/*
We can't use the bitmask here as we want to replace \O and ^Z with 0
We can't use the bitmask here as we want to replace \O and ^Z with 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