mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
0365e2d3dc
Fixed problem with negative DECIMAL() keys Fixed some bugs with NULL keys in BDB More mysql-test tests Docs/manual.texi: Changelog client/mysqltest.c: Added syntax: -- error #,#,... heap/hp_info.c: cleanup include/thr_lock.h: cleanup isam/pack_isam.c: cleanup myisam/mi_check.c: cleanup myisam/mi_extra.c: cleanup myisammrg/myrg_rkey.c: cleanup mysql-test/mysql-test-run.sh: Change to run test as root mysql-test/r/bdb.result: Many new tests mysql-test/r/func_system.result: Change to root user mysql-test/t/bdb.test: many more tests mysql-test/t/create.test: Change to work by test and root user sql/field.cc: Fixed problem with negative DECIMAL() keys sql/filesort.cc: cleanup sql/ha_berkeley.cc: Added purecoverage notes Fixed some bugs with NULL keys sql/init.cc: cleanup sql/mysql_priv.h: cleanup sql/mysqld.cc: cleanup sql/records.cc: cleanup sql/unireg.h: cleanup
59 lines
2.1 KiB
Text
59 lines
2.1 KiB
Text
#
|
|
# Check some special create statements.
|
|
#
|
|
|
|
create table t1 (b char(0));
|
|
insert into t1 values (""),(null);
|
|
select * from t1;
|
|
drop table if exists t1;
|
|
|
|
create table t1 (b char(0) not null);
|
|
create table if not exists t1 (b char(0) not null);
|
|
insert into t1 values (""),(null);
|
|
select * from t1;
|
|
drop table if exists t1;
|
|
|
|
#
|
|
# Test of some CREATE TABLE'S that should fail
|
|
#
|
|
|
|
!$1146 create table t2 type=heap select * from t1;
|
|
!$1146 create table t2 select auto+1 from t1;
|
|
drop table if exists t1,t2;
|
|
!$1167 create table t1 (b char(0) not null, index(b));
|
|
!$1164 create table t1 (a int not null auto_increment,primary key (a)) type=heap;
|
|
!$1163 create table t1 (a int not null,b text) type=heap;
|
|
!$1171 create table t1 (a int ,primary key(a)) type=heap;
|
|
!$1121 create table t1 (a int,b text, index(a)) type=isam;
|
|
!$1073 create table t1 (a int,b text, index(b)) type=isam;
|
|
drop table if exists t1;
|
|
|
|
!$1075 create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=isam;
|
|
!$1164 create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap;
|
|
!$1171 create table t1 (ordid int(8), primary key (ordid));
|
|
!$1121 create table t1 (ordid int(8), unique (ordid)) type=isam;
|
|
|
|
-- error 1044,1
|
|
create table not_existing_database.test (a int);
|
|
!$1103 create table `a/a` (a int);
|
|
!$1103 create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
|
|
!$1059 create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
|
|
|
|
#
|
|
# test of dummy table names
|
|
#
|
|
|
|
create table 1ea10 (1a20 int,1e int);
|
|
insert into 1ea10 values(1,1);
|
|
select 1ea10.1a20,1e+ 1e+10 from 1ea10;
|
|
drop table 1ea10;
|
|
create table t1 (t1.index int);
|
|
drop table t1;
|
|
drop database if exists test_$1;
|
|
create database test_$1;
|
|
create table test_$1.$test1 (a$1 int, $b int, c$ int);
|
|
insert into test_$1.$test1 values (1,2,3);
|
|
select a$1, $b, c$ from test_$1.$test1;
|
|
create table test_$1.test2$ (a int);
|
|
drop table test_$1.test2$;
|
|
drop database test_$1;
|