Drizzled Public API Documentation

truncate.inc

00001 # 
00002 # Simple test of the serial event log for testing TRUNCATE command 
00003 # 
00004 # We create a table and insert some data then call truncate on the 
00005 # table.
00006 # 
00007 # We then use the transaction_reader in plugin/transaction_log/utilities to read the events.
00008 #
00009 
00010 --disable_warnings
00011 DROP TABLE IF EXISTS t1;
00012 --enable_warnings
00013 
00014 CREATE TABLE t1 (
00015   id INT NOT NULL PRIMARY KEY
00016 , padding VARCHAR(200) NOT NULL
00017 );
00018 
00019 INSERT INTO t1 VALUES (1, "I love testing.");
00020 INSERT INTO t1 VALUES (2, "I hate testing.");
00021 
00022 TRUNCATE TABLE t1;
00023 
00024 DROP TABLE t1;