Browse Source

merging with mysql-5.1-bugteam

pull/374/head
Narayanan V 17 years ago
parent
commit
872ec20ede
  1. 20
      mysql-test/suite/ibmdb2i/include/have_i54.inc
  2. 4
      mysql-test/suite/ibmdb2i/r/ibmdb2i_bug_44232.result
  3. 8
      mysql-test/suite/ibmdb2i/t/ibmdb2i_bug_44232.test

20
mysql-test/suite/ibmdb2i/include/have_i54.inc

@ -0,0 +1,20 @@
# Check for IBM i 6.1 or later
--disable_query_log
system uname -rv > $MYSQLTEST_VARDIR/tmp/version;
--disable_warnings
drop table if exists uname_vr;
--enable_warnings
create temporary table uname_vr (r int, v int);
--disable_warnings
eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/version" into table uname_vr fields terminated by ' ';
--enable_warnings
let $ok = `select count(*) from uname_vr where v = 5 and r = 4`;
drop table uname_vr;
remove_file $MYSQLTEST_VARDIR/tmp/version;
--enable_query_log
if (!$ok)
{
skip "Need IBM i 5.4 or later";
}

4
mysql-test/suite/ibmdb2i/r/ibmdb2i_bug_44232.result

@ -0,0 +1,4 @@
create table t1 (c char(1) character set armscii8) engine=ibmdb2i;
ERROR HY000: Can't create table 'test.t1' (errno: 2504)
create table t1 (c char(1) character set eucjpms ) engine=ibmdb2i;
ERROR HY000: Can't create table 'test.t1' (errno: 2504)

8
mysql-test/suite/ibmdb2i/t/ibmdb2i_bug_44232.test

@ -0,0 +1,8 @@
--source suite/ibmdb2i/include/have_ibmdb2i.inc
--source suite/ibmdb2i/include/have_i54.inc
--error 1005
create table t1 (c char(1) character set armscii8) engine=ibmdb2i;
--error 1005
create table t1 (c char(1) character set eucjpms ) engine=ibmdb2i;
Loading…
Cancel
Save