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
673f67f6
Commit
673f67f6
authored
May 31, 2002
by
jani@dsl-jkl1657.dial.inet.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in mysql client.
parent
f587e985
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
112 additions
and
108 deletions
+112
-108
client/mysql.cc
client/mysql.cc
+112
-108
No files found.
client/mysql.cc
View file @
673f67f6
...
...
@@ -40,7 +40,7 @@
#include <signal.h>
#include <violite.h>
const
char
*
VER
=
"12.
9
"
;
const
char
*
VER
=
"12.
10
"
;
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
...
...
@@ -645,6 +645,9 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
case
'A'
:
rehash
=
0
;
break
;
case
'N'
:
column_names
=
0
;
break
;
case
'e'
:
status
.
batch
=
1
;
status
.
add_to_history
=
0
;
...
...
@@ -1597,18 +1600,19 @@ print_table_data(MYSQL_RES *result)
tee_puts
(
separator
.
c_ptr
(),
PAGER
);
}
while
((
cur
=
mysql_fetch_row
(
result
)))
while
((
cur
=
mysql_fetch_row
(
result
)))
{
(
void
)
tee_fputs
(
"|"
,
PAGER
);
mysql_field_seek
(
result
,
0
);
for
(
uint
off
=
0
;
off
<
mysql_num_fields
(
result
);
off
++
)
mysql_field_seek
(
result
,
0
);
for
(
uint
off
=
0
;
off
<
mysql_num_fields
(
result
);
off
++
)
{
const
char
*
str
=
cur
[
off
]
?
cur
[
off
]
:
"NULL"
;
field
=
mysql_fetch_field
(
result
);
uint
length
=
field
->
max_length
;
const
char
*
str
=
cur
[
off
]
?
cur
[
off
]
:
"NULL"
;
field
=
mysql_fetch_field
(
result
);
uint
length
=
field
->
max_length
;
if
(
length
>
MAX_COLUMN_LENGTH
)
{
tee_fputs
(
str
,
PAGER
);
tee_fputs
(
" |"
,
PAGER
);
tee_fputs
(
str
,
PAGER
);
tee_fputs
(
" |"
,
PAGER
);
}
else
tee_fprintf
(
PAGER
,
num_flag
[
off
]
?
"%*s |"
:
" %-*s|"
,
...
...
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