Commit 76b4ccbd authored by unknown's avatar unknown

Fixed portablity problem

Removed warnings from mysqltest scripts


cmd-line-utils/readline/undo.c:
  Fixed portability problem
mysql-test/include/mix2.inc:
  Removed mysqltest warnings
mysql-test/include/query_cache.inc:
  Removed mysqltest warnings
mysql-test/r/ndb_binlog_ddl_multi.result:
  Update tests after fixing wrong connection command in test
mysql-test/t/greedy_optimizer.test:
  Removed mysqltest warnings
mysql-test/t/join.test:
  Removed mysqltest warnings
mysql-test/t/ndb_binlog_ddl_multi.test:
  Removed mysqltest warnings
mysql-test/t/ndb_blob_partition.test:
  Removed mysqltest warnings
mysql-test/t/ndb_index_ordered.test:
  Removed mysqltest warnings
storage/ndb/src/kernel/vm/Rope.cpp:
  Removed compiler warning
parent 13bb3fa8
......@@ -175,7 +175,7 @@ _rl_fix_last_undo_of_type (type, start, end)
for (rl = rl_undo_list; rl; rl = rl->next)
{
if (rl->what == (uint) type)
if (rl->what == (unsigned int) type)
{
rl->start = start;
rl->end = end;
......
......@@ -1588,7 +1588,7 @@ INSERT INTO t1 (id) VALUES (NULL);
SELECT * FROM t1;
DROP TABLE t2, t1;
-- Test that foreign keys in temporary tables are not accepted (bug #12084)
# Test that foreign keys in temporary tables are not accepted (bug #12084)
eval CREATE TABLE t1
(
id INT PRIMARY KEY
......
......@@ -111,7 +111,7 @@ SET @@autocommit=1;
connection default;
--echo connection default
-- This should be 'YES'.
# This should be 'YES'.
SHOW VARIABLES LIKE 'have_query_cache';
SET GLOBAL query_cache_size = 200000;
......
......@@ -23,7 +23,7 @@ reset master;
alter table t2 add column (b int);
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin1.000001 # Query # # use `test`; alter table t2 add column (b int)
master-bin.000001 # Query # # use `test`; alter table t2 add column (b int)
reset master;
reset master;
ALTER DATABASE mysqltest CHARACTER SET latin1;
......
......@@ -145,11 +145,11 @@ select @@optimizer_prune_level;
#
# These are the values for the parameters that control the greedy optimizer
# (total 6 combinations - 3 for optimizer_search_depth, 2 for optimizer_prune_level):
--
#
# set optimizer_search_depth=0; - automatic
# set optimizer_search_depth=1; - min
# set optimizer_search_depth=62; - max (default)
--
#
# set optimizer_prune_level=0 - exhaustive;
# set optimizer_prune_level=1 - heuristic; # default
......
......@@ -489,9 +489,9 @@ select * from v1a join (t3 natural join t4) on a = y;
# Negative tests (tests for errors)
#--------------------------------------------------------------------
-- error 1052
select * from t1 natural join (t3 cross join t4); -- works in Oracle - bug
select * from t1 natural join (t3 cross join t4); # works in Oracle - bug
-- error 1052
select * from (t3 cross join t4) natural join t1; -- works in Oracle - bug
select * from (t3 cross join t4) natural join t1; # works in Oracle - bug
-- error 1052
select * from t1 join (t2, t3) using (b);
-- error 1052
......
......@@ -45,7 +45,7 @@ reset master;
--connection server2
alter table t2 add column (b int);
--connections server1
--connection server1
--source include/show_binlog_events.inc
# alter database
......
......@@ -36,15 +36,15 @@ set @s0 = 'rggurloniukyehuxdbfkkyzlceixzrehqhvxvxbpwizzvjzpucqmzrhzxzfau';
set @s1 = 'ykyymbzqgqlcjhlhmyqelfoaaohvtbekvifukdtnvcrrjveevfakxarxexomz';
set @s2 = 'dbnfqyzgtqxalcrwtfsqabknvtfcbpoonxsjiqvmhnfikxxhcgoexlkoezvah';
set @v1 = repeat(@s0, 100); -- 1d42dd9090cf78314a06665d4ea938c35cc760f4
set @v2 = repeat(@s1, 200); -- 10d3c783026b310218d10b7188da96a2401648c6
set @v3 = repeat(@s2, 300); -- a33549d9844092289a58ac348dd59f09fc28406a
set @v4 = repeat(@s0, 400); -- daa61c6de36a0526f0d47dc29d6b9de7e6d2630c
set @v5 = repeat(@s1, 500); -- 70fc9a7d08beebc522258bfb02000a30c77a8f1d
set @v6 = repeat(@s2, 600); -- 090565c580809efed3d369481a4bbb168b20713e
set @v7 = repeat(@s0, 700); -- 1e0070bec426871a46291de27b9bd6e4255ab4e5
set @v8 = repeat(@s1, 800); -- acbaba01bc2e682f015f40e79d9cbe475db3002e
set @v9 = repeat(@s2, 900); -- 9ee30d99162574f79c66ae95cdf132dcf9cbc259
set @v1 = repeat(@s0, 100); # 1d42dd9090cf78314a06665d4ea938c35cc760f4
set @v2 = repeat(@s1, 200); # 10d3c783026b310218d10b7188da96a2401648c6
set @v3 = repeat(@s2, 300); # a33549d9844092289a58ac348dd59f09fc28406a
set @v4 = repeat(@s0, 400); # daa61c6de36a0526f0d47dc29d6b9de7e6d2630c
set @v5 = repeat(@s1, 500); # 70fc9a7d08beebc522258bfb02000a30c77a8f1d
set @v6 = repeat(@s2, 600); # 090565c580809efed3d369481a4bbb168b20713e
set @v7 = repeat(@s0, 700); # 1e0070bec426871a46291de27b9bd6e4255ab4e5
set @v8 = repeat(@s1, 800); # acbaba01bc2e682f015f40e79d9cbe475db3002e
set @v9 = repeat(@s2, 900); # 9ee30d99162574f79c66ae95cdf132dcf9cbc259
--enable_query_log
# -- insert --
......
......@@ -50,7 +50,7 @@ update t1 set c = 13 where b <= 3;
select * from t1 order by a;
update t1 set b = b + 1 where b > 4 and b < 7;
select * from t1 order by a;
-- Update primary key
# Update primary key
update t1 set a = a + 10 where b > 1 and b < 7;
select * from t1 order by a;
......
......@@ -115,7 +115,7 @@ Rope::compare(const char * str, size_t len) const {
int res = memcmp(str, (const char*)curr.p->data, left);
if(res){
if(DEBUG_ROPE)
ndbout_c("Rope::compare(%s, %d) -> %d", str, len, res);
ndbout_c("Rope::compare(%s, %d) -> %d", str, (int) len, res);
return res;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment