1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Adding test cases for the example storage engine (so that you can test to see if it was built correctly).

This commit is contained in:
brian@avenger.(none)
2004-08-13 17:14:36 -07:00
parent b7b48d6764
commit 2fb2ee6f8f
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- require r/have_exampledb.require
disable_query_log;
show variables like "have_example_engine";
enable_query_log;

View File

@ -0,0 +1,6 @@
drop table if exists t1;
CREATE TABLE t1 (
Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
) ENGINE=example;
drop table t1;

View File

@ -0,0 +1,2 @@
Variable_name Value
have_exampledb YES

View File

@ -0,0 +1,16 @@
#
# Simple test for the example storage engine
# Taken fromm the select test
#
-- source include/have_exampledb.inc
--disable_warnings
drop table if exists t1;
--enable_warnings
CREATE TABLE t1 (
Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
) ENGINE=example;
drop table t1;