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
c28c6aa9
Commit
c28c6aa9
authored
Feb 28, 2006
by
paul@snake-hub.snake.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.0
into snake-hub.snake.net:/src/extern/MySQL/bk/mysql-5.1
parents
9d819dff
a052ef7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
client/mysqltest.c
client/mysqltest.c
+11
-11
No files found.
client/mysqltest.c
View file @
c28c6aa9
...
@@ -115,7 +115,7 @@ enum {OPT_MANAGER_USER=256,OPT_MANAGER_HOST,OPT_MANAGER_PASSWD,
...
@@ -115,7 +115,7 @@ enum {OPT_MANAGER_USER=256,OPT_MANAGER_HOST,OPT_MANAGER_PASSWD,
The list of error codes to --error are stored in an internal array of
The list of error codes to --error are stored in an internal array of
structs. This struct can hold numeric SQL error codes or SQLSTATE codes
structs. This struct can hold numeric SQL error codes or SQLSTATE codes
as strings. The element next to the last active element in the list is
as strings. The element next to the last active element in the list is
set to type ERR_EMPTY. When an SQL statement return
an error
we use
set to type ERR_EMPTY. When an SQL statement return
s an error,
we use
this list to check if this is an expected error.
this list to check if this is an expected error.
*/
*/
...
@@ -1105,8 +1105,8 @@ int do_source(struct st_query *query)
...
@@ -1105,8 +1105,8 @@ int do_source(struct st_query *query)
*
p
++=
0
;
*
p
++=
0
;
query
->
last_argument
=
p
;
query
->
last_argument
=
p
;
/*
/*
If this file has already been sourced, dont source it again.
If this file has already been sourced, don
'
t source it again.
It's already available in the q_lines cache
It's already available in the q_lines cache
.
*/
*/
if
(
parser
.
current_line
<
(
parser
.
read_lines
-
1
))
if
(
parser
.
current_line
<
(
parser
.
read_lines
-
1
))
return
0
;
return
0
;
...
@@ -1430,7 +1430,7 @@ int do_modify_var(struct st_query *query, const char *name,
...
@@ -1430,7 +1430,7 @@ int do_modify_var(struct st_query *query, const char *name,
system <command>
system <command>
Eval the query to expand any $variables in the command.
Eval the query to expand any $variables in the command.
Execute the command with
e
the "system" command.
Execute the command with the "system" command.
NOTE
NOTE
If mysqltest is executed from cygwin shell, the command will be
If mysqltest is executed from cygwin shell, the command will be
...
@@ -2457,7 +2457,7 @@ int safe_connect(MYSQL* mysql, const char *host, const char *user,
...
@@ -2457,7 +2457,7 @@ int safe_connect(MYSQL* mysql, const char *host, const char *user,
/*
/*
Connect to a server and handle connection errors in case
when
they occur.
Connect to a server and handle connection errors in case they occur.
SYNOPSIS
SYNOPSIS
connect_n_handle_errors()
connect_n_handle_errors()
...
@@ -2893,7 +2893,7 @@ my_bool end_of_query(int c)
...
@@ -2893,7 +2893,7 @@ my_bool end_of_query(int c)
Normally that means it will read lines until it reaches the
Normally that means it will read lines until it reaches the
"delimiter" that marks end of query. Default delimiter is ';'
"delimiter" that marks end of query. Default delimiter is ';'
The function should be smart enough not to detect delimiter's
The function should be smart enough not to detect delimiter's
found inside strings s
o
rrounded with '"' and '\'' escaped strings.
found inside strings s
u
rrounded with '"' and '\'' escaped strings.
If the first line in a query starts with '#' or '-' this line is treated
If the first line in a query starts with '#' or '-' this line is treated
as a comment. A comment is always terminated when end of line '\n' is
as a comment. A comment is always terminated when end of line '\n' is
...
@@ -3178,7 +3178,7 @@ static struct my_option my_long_options[] =
...
@@ -3178,7 +3178,7 @@ static struct my_option my_long_options[] =
{
"compress"
,
'C'
,
"Use the compressed server/client protocol."
,
{
"compress"
,
'C'
,
"Use the compressed server/client protocol."
,
(
gptr
*
)
&
opt_compress
,
(
gptr
*
)
&
opt_compress
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
(
gptr
*
)
&
opt_compress
,
(
gptr
*
)
&
opt_compress
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
},
{
"cursor-protocol"
,
OPT_CURSOR_PROTOCOL
,
"Use cursors for prepared stat
ment
"
,
{
"cursor-protocol"
,
OPT_CURSOR_PROTOCOL
,
"Use cursors for prepared stat
ements.
"
,
(
gptr
*
)
&
cursor_protocol
,
(
gptr
*
)
&
cursor_protocol
,
0
,
(
gptr
*
)
&
cursor_protocol
,
(
gptr
*
)
&
cursor_protocol
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"database"
,
'D'
,
"Database to use."
,
(
gptr
*
)
&
db
,
(
gptr
*
)
&
db
,
0
,
{
"database"
,
'D'
,
"Database to use."
,
(
gptr
*
)
&
db
,
(
gptr
*
)
&
db
,
0
,
...
@@ -3222,7 +3222,7 @@ static struct my_option my_long_options[] =
...
@@ -3222,7 +3222,7 @@ static struct my_option my_long_options[] =
{
"result-file"
,
'R'
,
"Read/Store result from/in this file."
,
{
"result-file"
,
'R'
,
"Read/Store result from/in this file."
,
(
gptr
*
)
&
result_file
,
(
gptr
*
)
&
result_file
,
0
,
GET_STR
,
REQUIRED_ARG
,
(
gptr
*
)
&
result_file
,
(
gptr
*
)
&
result_file
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
0
,
0
},
{
"server-arg"
,
'A'
,
"Send
enbedded server this as a paramen
ter."
,
{
"server-arg"
,
'A'
,
"Send
option value to embedded server as a parame
ter."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"server-file"
,
'F'
,
"Read embedded server arguments from file."
,
{
"server-file"
,
'F'
,
"Read embedded server arguments from file."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
@@ -5406,8 +5406,8 @@ int main(int argc, char **argv)
...
@@ -5406,8 +5406,8 @@ int main(int argc, char **argv)
/*
/*
my_stat() successful on result file. Check if we have not run a
my_stat() successful on result file. Check if we have not run a
single query, but we do have a result file that contains data.
single query, but we do have a result file that contains data.
Note that we don't care, if my_stat() fails. For example
for
Note that we don't care, if my_stat() fails. For example
, for a
non-existing or non-readable file we assume it's fine to have
non-existing or non-readable file
,
we assume it's fine to have
no query output from the test file, e.g. regarded as no error.
no query output from the test file, e.g. regarded as no error.
*/
*/
die
(
"No queries executed but result file found!"
);
die
(
"No queries executed but result file found!"
);
...
...
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