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
eaae3b2d
Commit
eaae3b2d
authored
Jul 30, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#21217 "mysqltest" client is inconsistent when to log a line number
- Init start_lineno to 0
parent
0928ae9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
client/mysqltest.c
client/mysqltest.c
+4
-2
No files found.
client/mysqltest.c
View file @
eaae3b2d
...
...
@@ -147,7 +147,7 @@ const char *user = 0, *host = 0, *unix_sock = 0, *opt_basedir="./";
static
int
port
=
0
;
static
my_bool
opt_big_test
=
0
,
opt_compress
=
0
,
silent
=
0
,
verbose
=
0
;
static
my_bool
tty_password
=
0
,
ps_protocol
=
0
,
ps_protocol_enabled
=
0
;
static
uint
start_lineno
,
*
lineno
;
static
uint
start_lineno
=
0
,
*
lineno
;
const
char
*
manager_user
=
"root"
,
*
manager_host
=
0
;
char
*
manager_pass
=
0
;
int
manager_port
=
MYSQL_MANAGER_PORT
;
...
...
@@ -580,7 +580,7 @@ static void die(const char *fmt, ...)
if
(
cur_file
&&
cur_file
!=
file_stack
)
fprintf
(
stderr
,
"In included file
\"
%s
\"
: "
,
cur_file
->
file_name
);
if
(
start_lineno
!=
0
)
if
(
start_lineno
>
0
)
fprintf
(
stderr
,
"At line %u: "
,
start_lineno
);
vfprintf
(
stderr
,
fmt
,
args
);
fprintf
(
stderr
,
"
\n
"
);
...
...
@@ -4072,6 +4072,8 @@ int main(int argc, char **argv)
parser
.
current_line
+=
current_line_inc
;
}
start_lineno
=
0
;
if
(
!
query_executed
&&
result_file
&&
my_stat
(
result_file
,
&
res_info
,
0
))
{
/*
...
...
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