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
160a3dce
Commit
160a3dce
authored
Dec 11, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
d54c696c
4e34f77c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
8 deletions
+34
-8
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+19
-0
client/mysqltest.c
client/mysqltest.c
+9
-5
mysql-test/Makefile.am
mysql-test/Makefile.am
+1
-1
mysql-test/t/kill.test
mysql-test/t/kill.test
+4
-1
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+1
-1
No files found.
client/mysqlbinlog.cc
View file @
160a3dce
...
@@ -1310,6 +1310,25 @@ static int dump_local_log_entries(const char* logname)
...
@@ -1310,6 +1310,25 @@ static int dump_local_log_entries(const char* logname)
}
}
else
// reading from stdin;
else
// reading from stdin;
{
{
/*
Bug fix: #23735
Author: Chuck Bell
Description:
Windows opens stdin in text mode by default. Certain characters
such as CTRL-Z are interpeted as events and the read() method
will stop. CTRL-Z is the EOF marker in Windows. to get past this
you have to open stdin in binary mode. Setmode() is used to set
stdin in binary mode. Errors on setting this mode result in
halting the function and printing an error message to stderr.
*/
#if defined (__WIN__) || (_WIN64)
if
(
_setmode
(
fileno
(
stdin
),
O_BINARY
)
==
-
1
)
{
fprintf
(
stderr
,
"Could not set binary mode on stdin.
\n
"
);
return
1
;
}
#endif
if
(
init_io_cache
(
file
,
fileno
(
stdin
),
0
,
READ_CACHE
,
(
my_off_t
)
0
,
if
(
init_io_cache
(
file
,
fileno
(
stdin
),
0
,
READ_CACHE
,
(
my_off_t
)
0
,
0
,
MYF
(
MY_WME
|
MY_NABP
|
MY_DONT_CHECK_FILESIZE
)))
0
,
MYF
(
MY_WME
|
MY_NABP
|
MY_DONT_CHECK_FILESIZE
)))
return
1
;
return
1
;
...
...
client/mysqltest.c
View file @
160a3dce
...
@@ -1246,7 +1246,9 @@ void var_set(const char *var_name, const char *var_name_end,
...
@@ -1246,7 +1246,9 @@ void var_set(const char *var_name, const char *var_name_end,
v
->
int_dirty
=
0
;
v
->
int_dirty
=
0
;
v
->
str_val_len
=
strlen
(
v
->
str_val
);
v
->
str_val_len
=
strlen
(
v
->
str_val
);
}
}
strxmov
(
buf
,
v
->
name
,
"="
,
v
->
str_val
,
NullS
);
my_snprintf
(
buf
,
sizeof
(
buf
),
"%.*s=%.*s"
,
v
->
name_len
,
v
->
name
,
v
->
str_val_len
,
v
->
str_val
);
if
(
!
(
v
->
env_s
=
my_strdup
(
buf
,
MYF
(
MY_WME
))))
if
(
!
(
v
->
env_s
=
my_strdup
(
buf
,
MYF
(
MY_WME
))))
die
(
"Out of memory"
);
die
(
"Out of memory"
);
putenv
(
v
->
env_s
);
putenv
(
v
->
env_s
);
...
@@ -4685,10 +4687,9 @@ void run_query_normal(struct st_connection *cn, struct st_command *command,
...
@@ -4685,10 +4687,9 @@ void run_query_normal(struct st_connection *cn, struct st_command *command,
}
}
/*
/*
Store the result. If res is NULL, use mysql_field_count to
Store the result of the query if it will return any fields
determine if that was expected
*/
*/
if
(
!
(
res
=
mysql_store_result
(
mysql
))
&&
mysql_field_count
(
mysql
))
if
(
mysql_field_count
(
mysql
)
&&
((
res
=
mysql_store_result
(
mysql
))
==
0
))
{
{
handle_error
(
command
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
),
handle_error
(
command
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
),
mysql_sqlstate
(
mysql
),
ds
);
mysql_sqlstate
(
mysql
),
ds
);
...
@@ -4740,7 +4741,10 @@ void run_query_normal(struct st_connection *cn, struct st_command *command,
...
@@ -4740,7 +4741,10 @@ void run_query_normal(struct st_connection *cn, struct st_command *command,
}
}
if
(
res
)
if
(
res
)
{
mysql_free_result
(
res
);
mysql_free_result
(
res
);
res
=
0
;
}
counter
++
;
counter
++
;
}
while
(
!
(
err
=
mysql_next_result
(
mysql
)));
}
while
(
!
(
err
=
mysql_next_result
(
mysql
)));
if
(
err
>
0
)
if
(
err
>
0
)
...
@@ -4807,7 +4811,7 @@ void handle_error(struct st_command *command,
...
@@ -4807,7 +4811,7 @@ void handle_error(struct st_command *command,
err_errno
,
err_error
);
err_errno
,
err_error
);
/* Abort the run of this test, pass the failed query as reason */
/* Abort the run of this test, pass the failed query as reason */
abort_not_supported_test
(
"Query '%s' failed, required functionality"
\
abort_not_supported_test
(
"Query '%s' failed, required functionality
"
\
"not supported"
,
command
->
query
);
"not supported"
,
command
->
query
);
}
}
...
...
mysql-test/Makefile.am
View file @
160a3dce
...
@@ -98,7 +98,7 @@ install-data-local:
...
@@ -98,7 +98,7 @@ install-data-local:
$(INSTALL_DATA)
$(srcdir)
/std_data/Moscow_leap
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/Moscow_leap
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.MY
*
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.MY
*
$(
DESTDIR)$(
distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.cnf
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.cnf
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(DESTDIR)$(testdir)
/lib
...
...
mysql-test/t/kill.test
View file @
160a3dce
...
@@ -76,11 +76,14 @@ insert into t2 select id from t1;
...
@@ -76,11 +76,14 @@ insert into t2 select id from t1;
create
table
t3
(
kill_id
int
);
create
table
t3
(
kill_id
int
);
insert
into
t3
values
(
connection_id
());
insert
into
t3
values
(
connection_id
());
connect
(
conn2
,
localhost
,
root
,,);
connection
conn2
;
connection
conn1
;
--
disable_result_log
--
disable_result_log
send
select
id
from
t1
where
id
in
(
select
distinct
id
from
t2
);
send
select
id
from
t1
where
id
in
(
select
distinct
id
from
t2
);
--
enable_result_log
--
enable_result_log
connect
(
conn2
,
localhost
,
root
,,);
connection
conn2
;
connection
conn2
;
select
((
@
id
:=
kill_id
)
-
kill_id
)
from
t3
;
select
((
@
id
:=
kill_id
)
-
kill_id
)
from
t3
;
--
sleep
1
--
sleep
1
...
...
scripts/make_binary_distribution.sh
View file @
160a3dce
...
@@ -245,7 +245,7 @@ $CP mysql-test/t/*.def $BASE/mysql-test/t
...
@@ -245,7 +245,7 @@ $CP mysql-test/t/*.def $BASE/mysql-test/t
$CP
mysql-test/std_data/
*
.dat mysql-test/std_data/
*
.frm
\
$CP
mysql-test/std_data/
*
.dat mysql-test/std_data/
*
.frm
\
mysql-test/std_data/
*
.pem mysql-test/std_data/Moscow_leap
\
mysql-test/std_data/
*
.pem mysql-test/std_data/Moscow_leap
\
mysql-test/std_data/des_key_file mysql-test/std_data/
*
.
*
001
\
mysql-test/std_data/des_key_file mysql-test/std_data/
*
.
*
001
\
mysql-test/std_data/
*
.cnf
\
mysql-test/std_data/
*
.cnf
mysql-test/std_data/
*
.MY
*
\
$BASE
/mysql-test/std_data
$BASE
/mysql-test/std_data
$CP
mysql-test/t/
*
.test mysql-test/t/
*
.imtest
\
$CP
mysql-test/t/
*
.test mysql-test/t/
*
.imtest
\
mysql-test/t/
*
.disabled mysql-test/t/
*
.opt
\
mysql-test/t/
*
.disabled mysql-test/t/
*
.opt
\
...
...
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