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
7dfdfa9f
Commit
7dfdfa9f
authored
Aug 25, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
b20d1ce4
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 @
7dfdfa9f
...
@@ -3393,7 +3393,7 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
...
@@ -3393,7 +3393,7 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
longlong
value
)
longlong
value
)
{
{
char
*
buffer
=
(
char
*
)
param
->
buffer
;
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
)
{
switch
(
param
->
buffer_type
)
{
case
MYSQL_TYPE_NULL
:
/* do nothing */
case
MYSQL_TYPE_NULL
:
/* do nothing */
...
@@ -3590,13 +3590,13 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
...
@@ -3590,13 +3590,13 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
{
{
ulong
length
;
ulong
length
;
enum
enum_field_types
field_type
=
field
->
type
;
enum
enum_field_types
field_type
=
field
->
type
;
uint
field_is_unsigned
=
field
->
flags
&
UNSIGNED_FLAG
;
switch
(
field_type
)
{
switch
(
field_type
)
{
case
MYSQL_TYPE_TINY
:
case
MYSQL_TYPE_TINY
:
{
{
char
value
=
(
char
)
**
row
;
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
;
(
longlong
)
value
;
fetch_long_with_conversion
(
param
,
field
,
data
);
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
1
;
length
=
1
;
...
@@ -3606,9 +3606,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
...
@@ -3606,9 +3606,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
case
MYSQL_TYPE_YEAR
:
case
MYSQL_TYPE_YEAR
:
{
{
short
value
=
sint2korr
(
*
row
);
short
value
=
sint2korr
(
*
row
);
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
);
longlong
data
=
field_is_unsigned
?
(
longlong
)
(
unsigned
short
)
value
:
longlong
data
=
((
field_is_unsigned
)
?
(
longlong
)
(
unsigned
short
)
value
:
(
longlong
)
value
;
(
longlong
)
value
);
fetch_long_with_conversion
(
param
,
field
,
data
);
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
2
;
length
=
2
;
break
;
break
;
...
@@ -3616,9 +3615,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
...
@@ -3616,9 +3615,8 @@ static void fetch_result_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
case
MYSQL_TYPE_LONG
:
case
MYSQL_TYPE_LONG
:
{
{
long
value
=
sint4korr
(
*
row
);
long
value
=
sint4korr
(
*
row
);
uint
field_is_unsigned
=
(
field
->
flags
&
UNSIGNED_FLAG
);
longlong
data
=
field_is_unsigned
?
(
longlong
)
(
unsigned
long
)
value
:
longlong
data
=
((
field_is_unsigned
)
?
(
longlong
)
(
unsigned
long
)
value
:
(
longlong
)
value
;
(
longlong
)
value
);
fetch_long_with_conversion
(
param
,
field
,
data
);
fetch_long_with_conversion
(
param
,
field
,
data
);
length
=
4
;
length
=
4
;
break
;
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