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
082ea848
Commit
082ea848
authored
Jan 25, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
f796818f
a2fdebaa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
5 deletions
+40
-5
client/mysql.cc
client/mysql.cc
+12
-2
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+7
-1
libmysql/Makefile.shared
libmysql/Makefile.shared
+3
-2
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+17
-0
mysql-test/t/federated.disabled
mysql-test/t/federated.disabled
+1
-0
No files found.
client/mysql.cc
View file @
082ea848
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include <locale.h>
#include <locale.h>
#endif
#endif
const
char
*
VER
=
"14.
7
"
;
const
char
*
VER
=
"14.
8
"
;
/* Don't try to make a nice table if the data is too big */
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
#define MAX_COLUMN_LENGTH 1024
...
@@ -144,6 +144,7 @@ static char *current_host,*current_db,*current_user=0,*opt_password=0,
...
@@ -144,6 +144,7 @@ static char *current_host,*current_db,*current_user=0,*opt_password=0,
*
current_prompt
=
0
,
*
delimiter_str
=
0
,
*
current_prompt
=
0
,
*
delimiter_str
=
0
,
*
default_charset
=
(
char
*
)
MYSQL_DEFAULT_CHARSET_NAME
;
*
default_charset
=
(
char
*
)
MYSQL_DEFAULT_CHARSET_NAME
;
static
char
*
histfile
;
static
char
*
histfile
;
static
char
*
histfile_tmp
;
static
String
glob_buffer
,
old_buffer
;
static
String
glob_buffer
,
old_buffer
;
static
String
processed_prompt
;
static
String
processed_prompt
;
static
char
*
full_username
=
0
,
*
part_username
=
0
,
*
default_prompt
=
0
;
static
char
*
full_username
=
0
,
*
part_username
=
0
,
*
default_prompt
=
0
;
...
@@ -442,6 +443,13 @@ int main(int argc,char *argv[])
...
@@ -442,6 +443,13 @@ int main(int argc,char *argv[])
if
(
verbose
)
if
(
verbose
)
tee_fprintf
(
stdout
,
"Reading history-file %s
\n
"
,
histfile
);
tee_fprintf
(
stdout
,
"Reading history-file %s
\n
"
,
histfile
);
read_history
(
histfile
);
read_history
(
histfile
);
if
(
!
(
histfile_tmp
=
(
char
*
)
my_malloc
((
uint
)
strlen
(
histfile
)
+
5
,
MYF
(
MY_WME
))))
{
fprintf
(
stderr
,
"Couldn't allocate memory for temp histfile!
\n
"
);
exit
(
1
);
}
sprintf
(
histfile_tmp
,
"%s.TMP"
,
histfile
);
}
}
}
}
#endif
#endif
...
@@ -470,7 +478,8 @@ sig_handler mysql_end(int sig)
...
@@ -470,7 +478,8 @@ sig_handler mysql_end(int sig)
/* write-history */
/* write-history */
if
(
verbose
)
if
(
verbose
)
tee_fprintf
(
stdout
,
"Writing history-file %s
\n
"
,
histfile
);
tee_fprintf
(
stdout
,
"Writing history-file %s
\n
"
,
histfile
);
write_history
(
histfile
);
if
(
!
write_history
(
histfile_tmp
))
my_rename
(
histfile_tmp
,
histfile
,
MYF
(
MY_WME
));
}
}
batch_readline_end
(
status
.
line_buff
);
batch_readline_end
(
status
.
line_buff
);
completion_hash_free
(
&
ht
);
completion_hash_free
(
&
ht
);
...
@@ -485,6 +494,7 @@ sig_handler mysql_end(int sig)
...
@@ -485,6 +494,7 @@ sig_handler mysql_end(int sig)
my_free
(
opt_password
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_password
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_mysql_unix_port
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
opt_mysql_unix_port
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
histfile
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
histfile
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
histfile_tmp
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_db
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_db
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_host
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_host
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_user
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
(
current_user
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
client/mysqlbinlog.cc
View file @
082ea848
...
@@ -780,7 +780,13 @@ static int check_master_version(MYSQL* mysql,
...
@@ -780,7 +780,13 @@ static int check_master_version(MYSQL* mysql,
if
(
mysql_query
(
mysql
,
"SELECT VERSION()"
)
||
if
(
mysql_query
(
mysql
,
"SELECT VERSION()"
)
||
!
(
res
=
mysql_store_result
(
mysql
)))
!
(
res
=
mysql_store_result
(
mysql
)))
die
(
"Error checking master version: %s"
,
mysql_error
(
mysql
));
{
char
errmsg
[
FN_REFLEN
];
strmake
(
errmsg
,
mysql_error
(
mysql
),
sizeof
(
errmsg
)
-
1
);
mysql_close
(
mysql
);
die
(
"Error checking master version: %s"
,
errmsg
);
}
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
{
{
mysql_free_result
(
res
);
mysql_free_result
(
res
);
...
...
libmysql/Makefile.shared
View file @
082ea848
...
@@ -65,8 +65,9 @@ mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
...
@@ -65,8 +65,9 @@ mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
my_compress.lo array.lo my_once.lo list.lo my_net.lo
\
my_compress.lo array.lo my_once.lo list.lo my_net.lo
\
charset.lo charset-def.lo hash.lo mf_iocache.lo
\
charset.lo charset-def.lo hash.lo mf_iocache.lo
\
mf_iocache2.lo my_seek.lo my_sleep.lo
\
mf_iocache2.lo my_seek.lo my_sleep.lo
\
my_pread.lo mf_cache.lo md5.lo sha1.lo
\
my_pread.lo mf_cache.lo md5.lo sha1.lo
\
my_getopt.lo my_gethostbyname.lo my_port.lo
my_getopt.lo my_gethostbyname.lo my_port.lo
\
my_rename.lo
sqlobjects
=
net.lo
sqlobjects
=
net.lo
sql_cmn_objects
=
pack.lo client.lo my_time.lo
sql_cmn_objects
=
pack.lo client.lo my_time.lo
...
...
mysql-test/mysql-test-run.sh
View file @
082ea848
...
@@ -765,6 +765,17 @@ skip_test() {
...
@@ -765,6 +765,17 @@ skip_test() {
$ECHO
"
$RES$RES_SPACE
[ skipped ]"
$ECHO
"
$RES$RES_SPACE
[ skipped ]"
}
}
disable_test
()
{
USERT
=
" ...."
SYST
=
" ...."
REALT
=
" ...."
pname
=
`
$ECHO
"
$1
"
|
$CUT
-c
1-24
`
RES
=
"
$pname
"
skip_inc
$ECHO
"
$RES$RES_SPACE
[ disabled ]
$2
"
}
report_stats
()
{
report_stats
()
{
if
[
$TOT_FAIL
=
0
]
;
then
if
[
$TOT_FAIL
=
0
]
;
then
$ECHO
"All
$TOT_TEST
tests were successful."
$ECHO
"All
$TOT_TEST
tests were successful."
...
@@ -1411,6 +1422,12 @@ run_testcase ()
...
@@ -1411,6 +1422,12 @@ run_testcase ()
if
[
-n
"
$RESULT_EXT
"
-a
\(
x
$RECORD
=
x1
-o
-f
"
$result_file$RESULT_EXT
"
\)
]
;
then
if
[
-n
"
$RESULT_EXT
"
-a
\(
x
$RECORD
=
x1
-o
-f
"
$result_file$RESULT_EXT
"
\)
]
;
then
result_file
=
"
$result_file$RESULT_EXT
"
result_file
=
"
$result_file$RESULT_EXT
"
fi
fi
if
[
-e
"
$TESTDIR
/
$tname
.disabled"
]
then
comment
=
`
$CAT
$TESTDIR
/
$tname
.disabled
`
;
disable_test
$tname
"
$comment
"
return
fi
if
[
"
$USE_MANAGER
"
=
1
]
;
then
if
[
"
$USE_MANAGER
"
=
1
]
;
then
many_slaves
=
`
$EXPR
\(
\(
$tname
: rpl_failsafe
\)
!=
0
\)
\|
\(
\(
$tname
: rpl_chain_temp_table
\)
!=
0
\)
`
many_slaves
=
`
$EXPR
\(
\(
$tname
: rpl_failsafe
\)
!=
0
\)
\|
\(
\(
$tname
: rpl_chain_temp_table
\)
!=
0
\)
`
fi
fi
...
...
mysql-test/t/federated.disabled
0 → 100644
View file @
082ea848
Patrick Galbraith should fix this
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