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
ef56c53e
Commit
ef56c53e
authored
Apr 07, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add row_fetch_store_uint4().
parent
68bb0484
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
include/row0sel.h
include/row0sel.h
+11
-0
row/row0sel.c
row/row0sel.c
+30
-0
No files found.
include/row0sel.h
View file @
ef56c53e
...
...
@@ -87,6 +87,17 @@ row_fetch_print(
/* out: always returns non-NULL */
void
*
row
,
/* in: sel_node_t* */
void
*
user_arg
);
/* in: not used */
/********************************************************************
Callback function for fetch that stores an unsigned 4 byte integer to the
location pointed. The column's type must be DATA_INT, DATA_UNSIGNED, length
= 4. */
void
*
row_fetch_store_uint4
(
/*==================*/
/* out: always returns NULL */
void
*
row
,
/* in: sel_node_t* */
void
*
user_arg
);
/* in: data pointer */
/***************************************************************
Prints a row in a select result. */
...
...
row/row0sel.c
View file @
ef56c53e
...
...
@@ -2055,6 +2055,36 @@ row_fetch_print(
return
((
void
*
)
42
);
}
/********************************************************************
Callback function for fetch that stores an unsigned 4 byte integer to the
location pointed. The column's type must be DATA_INT, DATA_UNSIGNED, length
= 4. */
void
*
row_fetch_store_uint4
(
/*==================*/
/* out: always returns NULL */
void
*
row
,
/* in: sel_node_t* */
void
*
user_arg
)
/* in: data pointer */
{
sel_node_t
*
node
=
row
;
ib_uint32_t
*
val
=
user_arg
;
ulint
tmp
;
dfield_t
*
dfield
=
que_node_get_val
(
node
->
select_list
);
dtype_t
*
type
=
dfield_get_type
(
dfield
);
ulint
len
=
dfield_get_len
(
dfield
);
ut_a
(
dtype_get_mtype
(
type
)
==
DATA_INT
);
ut_a
(
dtype_get_prtype
(
type
)
&
DATA_UNSIGNED
);
ut_a
(
len
==
4
);
tmp
=
mach_read_from_4
(
dfield_get_data
(
dfield
));
*
val
=
tmp
;
return
(
NULL
);
}
/***************************************************************
Prints a row in a select result. */
...
...
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