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
8b1673f1
Commit
8b1673f1
authored
May 16, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak
parent
58d05b07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
client/mysql.cc
client/mysql.cc
+4
-3
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
client/mysql.cc
View file @
8b1673f1
...
...
@@ -2051,7 +2051,8 @@ print_table_data(MYSQL_RES *result)
separator
.
fill
(
separator
.
length
()
+
length
+
2
,
'-'
);
separator
.
append
(
'+'
);
}
tee_puts
(
separator
.
c_ptr_safe
(),
PAGER
);
separator
.
append
(
'\0'
);
// End marker for \0
tee_puts
((
char
*
)
separator
.
ptr
(),
PAGER
);
if
(
column_names
)
{
mysql_field_seek
(
result
,
0
);
...
...
@@ -2064,7 +2065,7 @@ print_table_data(MYSQL_RES *result)
num_flag
[
off
]
=
IS_NUM
(
field
->
type
);
}
(
void
)
tee_fputs
(
"
\n
"
,
PAGER
);
tee_puts
(
separator
.
c_
ptr
(),
PAGER
);
tee_puts
(
(
char
*
)
separator
.
ptr
(),
PAGER
);
}
while
((
cur
=
mysql_fetch_row
(
result
)))
...
...
@@ -2093,7 +2094,7 @@ print_table_data(MYSQL_RES *result)
}
(
void
)
tee_fputs
(
"
\n
"
,
PAGER
);
}
tee_puts
(
separator
.
c_
ptr
(),
PAGER
);
tee_puts
(
(
char
*
)
separator
.
ptr
(),
PAGER
);
my_afree
((
gptr
)
num_flag
);
}
...
...
sql/sql_base.cc
View file @
8b1673f1
...
...
@@ -2522,7 +2522,7 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
if
((
pos
=
find_type
(
&
table
->
keynames
,
name
->
ptr
(),
name
->
length
(),
1
))
<=
0
)
{
my_error
(
ER_KEY_COLUMN_DOES_NOT_EXITS
,
MYF
(
0
),
name
->
c_ptr
_safe
(),
my_error
(
ER_KEY_COLUMN_DOES_NOT_EXITS
,
MYF
(
0
),
name
->
c_ptr
(),
table
->
real_name
);
map
->
set_all
();
return
1
;
...
...
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