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
87ff57cb
Commit
87ff57cb
authored
Jan 20, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 48888
parents
a1c94053
b554f4c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
client/mysqltest.cc
client/mysqltest.cc
+2
-2
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+3
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+11
-0
No files found.
client/mysqltest.cc
View file @
87ff57cb
...
...
@@ -9477,7 +9477,7 @@ int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name)
if
(
pa
->
length
+
length
>=
pa
->
max_length
)
{
if
(
!
(
new_pos
=
(
uchar
*
)
my_realloc
((
uchar
*
)
pa
->
str
,
(
uint
)
(
pa
->
max_
length
+
PS_MALLOC
),
(
uint
)
(
pa
->
length
+
length
+
PS_MALLOC
),
MYF
(
MY_WME
))))
DBUG_RETURN
(
1
);
if
(
new_pos
!=
pa
->
str
)
...
...
@@ -9488,7 +9488,7 @@ int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name)
char
*
);
pa
->
str
=
new_pos
;
}
pa
->
max_length
+=
PS_MALLOC
;
pa
->
max_length
=
pa
->
length
+
length
+
PS_MALLOC
;
}
if
(
pa
->
typelib
.
count
>=
pa
->
max_count
-
1
)
{
...
...
mysql-test/r/mysqltest.result
View file @
87ff57cb
...
...
@@ -421,6 +421,9 @@ mysqltest: At line 1: Wrong number of arguments to replace_column in 'replace_co
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a b'
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a 1'
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column 1 b c '
select "LONG_STRING" as x;
x
LONG_STRING
mysqltest: At line 1: Invalid integer argument "10!"
mysqltest: At line 1: Invalid integer argument "a"
mysqltest: At line 1: Missing required argument 'connection name' to command 'connect'
...
...
mysql-test/t/mysqltest.test
View file @
87ff57cb
...
...
@@ -1316,6 +1316,17 @@ select "a" as col1, "c" as col2;
--
error
1
--
exec
echo
"--replace_column 1 b c "
|
$MYSQL_TEST
2
>&
1
let
$long_rep
=
1234567890123456789012345678901234567890
;
let
$long_rep
=
$long_rep
,
$long_rep
;
let
$long_rep
=
$long_rep
,
$long_rep
;
let
$long_rep
=
$long_rep
,
$long_rep
;
let
$long_rep
=
$long_rep
,
$long_rep
;
let
$long_rep
=
$long_rep
,
$long_rep
;
# This tests from strings > 1024 (here 1311)
--
replace_result
$long_rep
LONG_STRING
eval
select
"
$long_rep
"
as
x
;
# ----------------------------------------------------------------------------
# Test sync_with_master
...
...
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