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
f7d6a2ed
Commit
f7d6a2ed
authored
Jun 23, 2010
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed trival bug introduced in last patch (buffer was not extended)
parent
5a2f40d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+5
-1
No files found.
storage/csv/ha_tina.cc
View file @
f7d6a2ed
...
...
@@ -489,7 +489,11 @@ int ha_tina::encode_quote(uchar *buf)
ptr
=
attribute
.
ptr
();
end_ptr
=
attribute
.
length
()
+
ptr
;
if
(
buffer
.
realloc
(
attribute
.
length
()
*
2
+
2
))
/*
Ensure that buffer is big enough. This will also speed things up
as we don't have to do any new allocation in the loop below
*/
if
(
buffer
.
realloc
(
buffer
.
length
()
+
attribute
.
length
()
*
2
+
2
))
return
0
;
// Failure
buffer
.
append
(
'"'
);
...
...
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