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
34b3eb82
Commit
34b3eb82
authored
Aug 25, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
c0a0bc40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
libmysql/libmysql.c
libmysql/libmysql.c
+8
-10
No files found.
libmysql/libmysql.c
View file @
34b3eb82
...
...
@@ -3393,7 +3393,7 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
longlong
value
)
{
char
*
buffer
=
(
char
*
)
param
->
buffer
;
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
)
;
uint
field_is_unsigned
=
field
->
flags
&
UNSIGNED_FLAG
;
switch
(
param
->
buffer_type
)
{
case
MYSQL_TYPE_NULL
:
/* do nothing */
...
...
@@ -3590,13 +3590,13 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
{
ulong
length
;
enum
enum_field_types
field_type
=
field
->
type
;
uint
field_is_unsigned
=
field
->
flags
&
UNSIGNED_FLAG
;
switch
(
field_type
)
{
case
MYSQL_TYPE_TINY
:
{
char
value
=
(
char
)
**
row
;
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
);
longlong
data
=
(
field_is_unsigned
)
?
(
longlong
)
(
unsigned
char
)
value
:
longlong
data
=
field_is_unsigned
?
(
longlong
)
(
unsigned
char
)
value
:
(
longlong
)
value
;
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
1
;
...
...
@@ -3606,9 +3606,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
case
MYSQL_TYPE_YEAR
:
{
short
value
=
sint2korr
(
*
row
);
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
);
longlong
data
=
((
field_is_unsigned
)
?
(
longlong
)
(
unsigned
short
)
value
:
(
longlong
)
value
);
longlong
data
=
field_is_unsigned
?
(
longlong
)
(
unsigned
short
)
value
:
(
longlong
)
value
;
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
2
;
break
;
...
...
@@ -3616,9 +3615,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
case
MYSQL_TYPE_LONG
:
{
long
value
=
sint4korr
(
*
row
);
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
);
longlong
data
=
((
field_is_unsigned
)
?
(
longlong
)
(
unsigned
long
)
value
:
(
longlong
)
value
);
longlong
data
=
field_is_unsigned
?
(
longlong
)
(
unsigned
long
)
value
:
(
longlong
)
value
;
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
4
;
break
;
...
...
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