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
e19588dc
Commit
e19588dc
authored
Oct 22, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embedded tests
parent
72e144a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
client/sql_string.h
client/sql_string.h
+7
-6
No files found.
client/sql_string.h
View file @
e19588dc
...
...
@@ -32,13 +32,13 @@ uint32 copy_and_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
class
String
{
char
*
Ptr
;
uint32
str_length
,
Alloced_length
;
uint32
str_length
,
Alloced_length
,
extra_alloc
;
bool
alloced
;
CHARSET_INFO
*
str_charset
;
public:
String
()
{
Ptr
=
0
;
str_length
=
Alloced_length
=
0
;
alloced
=
0
;
Ptr
=
0
;
str_length
=
Alloced_length
=
extra_alloc
=
0
;
alloced
=
0
;
str_charset
=
&
my_charset_bin
;
}
String
(
uint32
length_arg
)
...
...
@@ -48,23 +48,24 @@ public:
}
String
(
const
char
*
str
,
CHARSET_INFO
*
cs
)
{
Ptr
=
(
char
*
)
str
;
str_length
=
(
uint
)
strlen
(
str
);
Alloced_length
=
0
;
alloced
=
0
;
Ptr
=
(
char
*
)
str
;
str_length
=
(
uint32
)
strlen
(
str
);
Alloced_length
=
extra_alloc
=
0
;
alloced
=
0
;
str_charset
=
cs
;
}
String
(
const
char
*
str
,
uint32
len
,
CHARSET_INFO
*
cs
)
{
Ptr
=
(
char
*
)
str
;
str_length
=
len
;
Alloced_length
=
0
;
alloced
=
0
;
Ptr
=
(
char
*
)
str
;
str_length
=
len
;
Alloced_length
=
extra_alloc
=
0
;
alloced
=
0
;
str_charset
=
cs
;
}
String
(
char
*
str
,
uint32
len
,
CHARSET_INFO
*
cs
)
{
Ptr
=
(
char
*
)
str
;
Alloced_length
=
str_length
=
len
;
alloced
=
0
;
Ptr
=
(
char
*
)
str
;
Alloced_length
=
str_length
=
len
;
extra_alloc
=
0
;
alloced
=
0
;
str_charset
=
cs
;
}
String
(
const
String
&
str
)
{
Ptr
=
str
.
Ptr
;
str_length
=
str
.
str_length
;
Alloced_length
=
str
.
Alloced_length
;
alloced
=
0
;
Alloced_length
=
str
.
Alloced_length
;
extra_alloc
=
0
;
alloced
=
0
;
str_charset
=
str
.
str_charset
;
}
static
void
*
operator
new
(
size_t
size
,
MEM_ROOT
*
mem_root
)
...
...
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