DBIx-Custom / t / common-sqlite-quote.t /
Newer Older
25 lines | 1.048kb
test cleanup
Yuki Kimoto authored on 2011-08-08
1
use strict;
2
use warnings;
3

            
4
use FindBin;
5
$ENV{DBIX_CUSTOM_TEST_RUN} = 1;
6

            
7
use DBIx::Custom;
8
{
9
    package DBIx::Custom;
10
    no warnings 'redefine';
test cleanup
Yuki Kimoto authored on 2011-08-10
11
    has dsn => 'dbi:SQLite:dbname=:memory:';
test cleanup
Yuki Kimoto authored on 2011-08-08
12
    sub quote { '""' }
cleanup test
Yuki Kimoto authored on 2011-08-10
13
    sub create_table1 { 'create table table1 (key1 varchar, key2 varchar);' }
14
    sub create_table1_2 {'create table table1 (key1 varchar, key2 varchar, key3 varchar, key4 varchar, key5 varchar);' }
test cleanup
Yuki Kimoto authored on 2011-08-10
15
    sub create_table1_type { 'create table table1 (key1 Date, key2 datetime);' }
cleanup test
Yuki Kimoto authored on 2011-08-10
16
    
17
    sub create_table1_highperformance { "create table table1 (ab varchar, bc varchar, ik varchar, hi varchar, ui varchar, pq varchar, dc varchar);" }
18
    
19
    sub create_table2 { 'create table table2 (key1 varchar, key3 varchar);' }
20
    sub create_table2_2 { "create table table2 (key1 varchar, key2 varchar, key3 varchar)" }
21
    sub create_table3 { "create table table3 (key1 varchar, key2 varchar, key3 varchar)" }
22
    sub create_table_reserved { 'create table "table" ("select" varchar, "update" varchar)' }
test cleanup
Yuki Kimoto authored on 2011-08-08
23
}
24

            
25
require "$FindBin::Bin/common.t";