mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
3214bf8117
mysql-test/include/ps_create.inc: Added comments mysql-test/include/ps_modify.inc: added comments mysql-test/include/ps_modify1.inc: Added comments mysql-test/include/ps_query.inc: Added and modified comments mysql-test/t/ps_1general.test: Description of the test structure and rules how to extend the tests added and one comment modified . mysql-test/t/ps_2myisam.test: Added comments mysql-test/t/ps_3innodb.test: added comments mysql-test/t/ps_4heap.test: added and altered comments mysql-test/t/ps_5merge.test: added comments mysql-test/t/ps_6bdb.test: added comments
48 lines
1.4 KiB
Text
48 lines
1.4 KiB
Text
###############################################
|
|
# #
|
|
# Prepared Statements test on HEAP tables #
|
|
# #
|
|
###############################################
|
|
|
|
#
|
|
# NOTE: PLEASE SEE ps_1general.test (bottom)
|
|
# BEFORE ADDING NEW TEST CASES HERE !!!
|
|
|
|
use test;
|
|
|
|
let $type= 'HEAP' ;
|
|
--disable_warnings
|
|
drop table if exists t1, t_many_col_types ;
|
|
--enable_warnings
|
|
eval create table t1
|
|
(
|
|
a int, b varchar(30),
|
|
primary key(a)
|
|
) engine = $type ;
|
|
|
|
--disable_warnings
|
|
drop table if exists t_many_col_types;
|
|
--enable_warnings
|
|
# The used table type doesn't support BLOB/TEXT columns.
|
|
# (The server would send error 1163 .)
|
|
# So we use char(100) instead.
|
|
eval create table t_many_col_types
|
|
(
|
|
c1 tinyint, c2 smallint, c3 mediumint, c4 int,
|
|
c5 integer, c6 bigint, c7 float, c8 double,
|
|
c9 double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
|
|
c13 date, c14 datetime, c15 timestamp(14), c16 time,
|
|
c17 year, c18 bit, c19 bool, c20 char,
|
|
c21 char(10), c22 varchar(30), c23 char(100), c24 char(100),
|
|
c25 char(100), c26 char(100), c27 char(100), c28 char(100),
|
|
c29 char(100), c30 char(100), c31 enum('one', 'two', 'three'),
|
|
c32 set('monday', 'tuesday', 'wednesday'),
|
|
primary key(c1)
|
|
) engine = $type ;
|
|
-- source include/ps_renew.inc
|
|
|
|
-- source include/ps_query.inc
|
|
-- source include/ps_modify.inc
|
|
-- source include/ps_modify1.inc
|
|
|
|
drop table t1, t_many_col_types;
|