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
d61da11e
Commit
d61da11e
authored
May 07, 2007
by
holyfoot/hf@mysql.com/hfmain.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Solaris compilation failure
parent
306371a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
sql/field.cc
sql/field.cc
+8
-8
sql/field.h
sql/field.h
+4
-1
No files found.
sql/field.cc
View file @
d61da11e
...
@@ -7006,34 +7006,34 @@ Field_blob::Field_blob(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
...
@@ -7006,34 +7006,34 @@ Field_blob::Field_blob(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
}
}
void
Field_blob
::
store_length
(
char
*
ptr
,
uint
packlength
,
uint32
number
)
void
Field_blob
::
store_length
(
char
*
i_ptr
,
uint
i_packlength
,
uint32
i_
number
)
{
{
switch
(
packlength
)
{
switch
(
i_
packlength
)
{
case
1
:
case
1
:
ptr
[
0
]
=
(
uchar
)
number
;
i_ptr
[
0
]
=
(
uchar
)
i_
number
;
break
;
break
;
case
2
:
case
2
:
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
if
(
table
->
s
->
db_low_byte_first
)
if
(
table
->
s
->
db_low_byte_first
)
{
{
int2store
(
ptr
,(
unsigned
short
)
number
);
int2store
(
i_ptr
,(
unsigned
short
)
i_
number
);
}
}
else
else
#endif
#endif
shortstore
(
ptr
,(
unsigned
short
)
number
);
shortstore
(
i_ptr
,(
unsigned
short
)
i_
number
);
break
;
break
;
case
3
:
case
3
:
int3store
(
ptr
,
number
);
int3store
(
i_ptr
,
i_
number
);
break
;
break
;
case
4
:
case
4
:
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
if
(
table
->
s
->
db_low_byte_first
)
if
(
table
->
s
->
db_low_byte_first
)
{
{
int4store
(
ptr
,
number
);
int4store
(
i_ptr
,
i_
number
);
}
}
else
else
#endif
#endif
longstore
(
ptr
,
number
);
longstore
(
i_ptr
,
i_
number
);
}
}
}
}
...
...
sql/field.h
View file @
d61da11e
...
@@ -1307,7 +1307,10 @@ class Field_blob :public Field_longstr {
...
@@ -1307,7 +1307,10 @@ class Field_blob :public Field_longstr {
}
}
int
reset
(
void
)
{
bzero
(
ptr
,
packlength
+
sizeof
(
char
*
));
return
0
;
}
int
reset
(
void
)
{
bzero
(
ptr
,
packlength
+
sizeof
(
char
*
));
return
0
;
}
void
reset_fields
()
{
bzero
((
char
*
)
&
value
,
sizeof
(
value
));
}
void
reset_fields
()
{
bzero
((
char
*
)
&
value
,
sizeof
(
value
));
}
static
void
store_length
(
char
*
ptr
,
uint
packlength
,
uint32
number
);
#ifndef WORDS_BIGENDIAN
static
#endif
void
store_length
(
char
*
i_ptr
,
uint
i_packlength
,
uint32
i_number
);
inline
void
store_length
(
uint32
number
)
inline
void
store_length
(
uint32
number
)
{
{
store_length
(
ptr
,
packlength
,
number
);
store_length
(
ptr
,
packlength
,
number
);
...
...
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