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
d475256c
Commit
d475256c
authored
Aug 17, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dfield_print_raw(): Make static. Print at most 1000 bytes to avoid
excessive space usage of the error log.
parent
abe9dae4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
data/data0data.c
data/data0data.c
+8
-3
include/data0data.h
include/data0data.h
+0
-8
No files found.
data/data0data.c
View file @
d475256c
...
@@ -433,15 +433,20 @@ dfield_print_also_hex(
...
@@ -433,15 +433,20 @@ dfield_print_also_hex(
/*****************************************************************
/*****************************************************************
Print a dfield value using ut_print_buf. */
Print a dfield value using ut_print_buf. */
static
void
void
dfield_print_raw
(
dfield_print_raw
(
/*=============*/
/*=============*/
FILE
*
f
,
/* in: output stream */
FILE
*
f
,
/* in: output stream */
dfield_t
*
dfield
)
/* in: dfield */
dfield_t
*
dfield
)
/* in: dfield */
{
{
if
(
dfield
->
len
!=
UNIV_SQL_NULL
)
{
ulint
len
=
dfield
->
len
;
ut_print_buf
(
f
,
dfield
->
data
,
dfield
->
len
);
if
(
len
!=
UNIV_SQL_NULL
)
{
ulint
print_len
=
ut_min
(
len
,
1000
);
ut_print_buf
(
f
,
dfield
->
data
,
print_len
);
if
(
len
!=
print_len
)
{
fprintf
(
f
,
"(total %lu bytes)"
,
(
ulong
)
len
);
}
}
else
{
}
else
{
fputs
(
" SQL NULL"
,
f
);
fputs
(
" SQL NULL"
,
f
);
}
}
...
...
include/data0data.h
View file @
d475256c
...
@@ -320,14 +320,6 @@ void
...
@@ -320,14 +320,6 @@ void
dfield_print_also_hex
(
dfield_print_also_hex
(
/*==================*/
/*==================*/
dfield_t
*
dfield
);
/* in: dfield */
dfield_t
*
dfield
);
/* in: dfield */
/*****************************************************************
Print a dfield value using ut_print_buf. */
void
dfield_print_raw
(
/*=============*/
FILE
*
f
,
/* in: output stream */
dfield_t
*
dfield
);
/* in: dfield */
/**************************************************************
/**************************************************************
The following function prints the contents of a tuple. */
The following function prints the contents of a tuple. */
...
...
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