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
c850371d
Commit
c850371d
authored
Jan 28, 2010
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #50271: Debug output of JOIN structures is garbled
parent
f546069d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
sql/sql_test.cc
sql/sql_test.cc
+17
-7
No files found.
sql/sql_test.cc
View file @
c850371d
...
...
@@ -168,6 +168,21 @@ TEST_join(JOIN *join)
uint
i
,
ref
;
DBUG_ENTER
(
"TEST_join"
);
/*
Assemble results of all the calls to full_name() first,
in order not to garble the tabular output below.
*/
String
ref_key_parts
[
MAX_TABLES
];
for
(
i
=
0
;
i
<
join
->
tables
;
i
++
)
{
JOIN_TAB
*
tab
=
join
->
join_tab
+
i
;
for
(
ref
=
0
;
ref
<
tab
->
ref
.
key_parts
;
ref
++
)
{
ref_key_parts
[
i
].
append
(
tab
->
ref
.
items
[
ref
]
->
full_name
());
ref_key_parts
[
i
].
append
(
" "
);
}
}
DBUG_LOCK_FILE
;
VOID
(
fputs
(
"
\n
Info about JOIN
\n
"
,
DBUG_FILE
));
for
(
i
=
0
;
i
<
join
->
tables
;
i
++
)
...
...
@@ -199,13 +214,8 @@ TEST_join(JOIN *join)
}
if
(
tab
->
ref
.
key_parts
)
{
VOID
(
fputs
(
" refs: "
,
DBUG_FILE
));
for
(
ref
=
0
;
ref
<
tab
->
ref
.
key_parts
;
ref
++
)
{
Item
*
item
=
tab
->
ref
.
items
[
ref
];
fprintf
(
DBUG_FILE
,
"%s "
,
item
->
full_name
());
}
VOID
(
fputc
(
'\n'
,
DBUG_FILE
));
fprintf
(
DBUG_FILE
,
" refs: %s
\n
"
,
ref_key_parts
[
i
].
ptr
());
}
}
DBUG_UNLOCK_FILE
;
...
...
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