Commit 24e03b49 authored by unknown's avatar unknown
Browse files

Adding test cases for the example storage engine (so that you can test to see...

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


parent 2d8f4a61
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
-- require r/have_exampledb.require
disable_query_log;
show variables like "have_example_engine";
enable_query_log;
+6 −0
Original line number Diff line number Diff line
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;
+2 −0
Original line number Diff line number Diff line
Variable_name	Value
have_exampledb	YES
+16 −0
Original line number Diff line number Diff line
#
# 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;