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
e98e64ce
Commit
e98e64ce
authored
Jan 08, 2005
by
serg@sergbook.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into sergbook.mylan:/usr/home/serg/Abk/mysql-4.1
parents
3b1b5edd
247052fe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
client/completion_hash.cc
client/completion_hash.cc
+2
-1
client/mysql.cc
client/mysql.cc
+6
-3
cmd-line-utils/libedit/parse.c
cmd-line-utils/libedit/parse.c
+2
-1
pstack/pstack.c
pstack/pstack.c
+1
-1
No files found.
client/completion_hash.cc
View file @
e98e64ce
...
...
@@ -79,7 +79,8 @@ int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength,
if
(
!
memcmp
(
p
->
arKey
,
arKey
,
nKeyLength
))
{
entry
*
n
;
n
=
(
entry
*
)
alloc_root
(
&
ht
->
mem_root
,
sizeof
(
entry
));
if
(
!
(
n
=
(
entry
*
)
alloc_root
(
&
ht
->
mem_root
,
sizeof
(
entry
))))
return
FAILURE
;
n
->
pNext
=
p
->
pData
;
n
->
str
=
str
;
p
->
pData
=
n
;
...
...
client/mysql.cc
View file @
e98e64ce
...
...
@@ -1502,7 +1502,10 @@ You can turn off this feature to get a quicker startup with -A\n\n");
if
(
!
(
field_names
[
i
]
=
(
char
**
)
alloc_root
(
&
hash_mem_root
,
sizeof
(
char
*
)
*
(
num_fields
*
2
+
1
))))
{
mysql_free_result
(
fields
);
break
;
}
field_names
[
i
][
num_fields
*
2
]
=
'\0'
;
j
=
0
;
while
((
sql_field
=
mysql_fetch_field
(
fields
)))
...
...
@@ -2077,10 +2080,10 @@ print_table_data_html(MYSQL_RES *result)
}
while
((
cur
=
mysql_fetch_row
(
result
)))
{
ulong
*
lengths
=
mysql_fetch_lengths
(
result
);
(
void
)
tee_fputs
(
"<TR>"
,
PAGER
);
for
(
uint
i
=
0
;
i
<
mysql_num_fields
(
result
);
i
++
)
{
ulong
*
lengths
=
mysql_fetch_lengths
(
result
);
(
void
)
tee_fputs
(
"<TD>"
,
PAGER
);
safe_put_field
(
cur
[
i
],
lengths
[
i
]);
(
void
)
tee_fputs
(
"</TD>"
,
PAGER
);
...
...
@@ -2106,10 +2109,10 @@ print_table_data_xml(MYSQL_RES *result)
fields
=
mysql_fetch_fields
(
result
);
while
((
cur
=
mysql_fetch_row
(
result
)))
{
ulong
*
lengths
=
mysql_fetch_lengths
(
result
);
(
void
)
tee_fputs
(
"
\n
<row>
\n
"
,
PAGER
);
for
(
uint
i
=
0
;
i
<
mysql_num_fields
(
result
);
i
++
)
{
ulong
*
lengths
=
mysql_fetch_lengths
(
result
);
tee_fprintf
(
PAGER
,
"
\t
<%s>"
,
(
fields
[
i
].
name
?
(
fields
[
i
].
name
[
0
]
?
fields
[
i
].
name
:
" "
)
:
"NULL"
));
...
...
cmd-line-utils/libedit/parse.c
View file @
e98e64ce
...
...
@@ -87,7 +87,8 @@ parse_line(EditLine *el, const char *line)
int
argc
;
Tokenizer
*
tok
;
tok
=
tok_init
(
NULL
);
if
(
!
(
tok
=
tok_init
(
NULL
)))
return
-
1
;
tok_line
(
tok
,
line
,
&
argc
,
&
argv
);
argc
=
el_parse
(
el
,
argc
,
argv
);
tok_end
(
tok
);
...
...
pstack/pstack.c
View file @
e98e64ce
...
...
@@ -1663,7 +1663,7 @@ pr_tag_type (p, name, id, kind)
{
struct
pr_handle
*
info
=
(
struct
pr_handle
*
)
p
;
const
char
*
t
,
*
tag
;
char
idbuf
[
2
0
];
char
idbuf
[
3
0
];
switch
(
kind
)
{
...
...
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