Showing 1 changed files with 39 additions and 9 deletions
+39 -9
t/common-sqlserver.t
... ...
@@ -11,6 +11,36 @@ use DBIx::Custom;
11 11
     package DBIx::Custom;
12 12
     no warnings 'redefine';
13 13
 
14
+    my $table1 = 'table1';
15
+    my $table2 = 'table2';
16
+    my $table2_alias = 'table2_alias';
17
+    my $table3 = 'table3';
18
+    my $key1 = 'key1';
19
+    my $key2 = 'key2';
20
+    my $key3 = 'key3';
21
+    my $key4 = 'key4';
22
+    my $key5 = 'key5';
23
+    my $key6 = 'key6';
24
+    my $key7 = 'key7';
25
+    my $key8 = 'key8';
26
+    my $key9 = 'key9';
27
+    my $key10 = 'key10';
28
+    
29
+    has table1 => $table1;
30
+    has table2 => $table2;
31
+    has table2_alias => $table2_alias;
32
+    has table3 => $table3;
33
+    has key1 => $key1;
34
+    has key2 => $key2;
35
+    has key3 => $key3;
36
+    has key4 => $key4;
37
+    has key5 => $key5;
38
+    has key6 => $key6;
39
+    has key7 => $key7;
40
+    has key8 => $key8;
41
+    has key9 => $key9;
42
+    has key10 => $key10;
43
+
14 44
     my $date_typename = 'date';
15 45
     my $datetime_typename = 'datetime';
16 46
 
... ...
@@ -382,15 +412,15 @@ use DBIx::Custom;
382 412
     has user  => 'dbix_custom';
383 413
     has password => 'dbix_custom';
384 414
     
385
-    sub create_table1 { 'create table table1 (key1 varchar(255), key2 varchar(255));' }
386
-    sub create_table1_2 {'create table table1 (key1 varchar(255), key2 varchar(255), '
387
-     . 'key3 varchar(255), key4 varchar(255), key5 varchar(255));' }
388
-    sub create_table1_type { "create table table1 (key1 $date_typename, key2 $datetime_typename);" }
389
-    sub create_table1_highperformance { "create table table1 (ab varchar(255), bc varchar(255), "
390
-      . "ik varchar(255), hi varchar(255), ui varchar(255), pq varchar(255), dc varchar(255));" }
391
-    sub create_table2 { 'create table table2 (key1 varchar(255), key3 varchar(255));' }
392
-    sub create_table2_2 { "create table table2 (key1 varchar(255), key2 varchar(255), key3 varchar(255))" }
393
-    sub create_table3 { "create table table3 (key1 varchar(255), key2 varchar(255), key3 varchar(255))" }
415
+    sub create_table1 { "create table $table1 ($key1 varchar(255), $key2 varchar(255));" }
416
+    sub create_table1_2 {"create table $table1 ($key1 varchar(255), $key2 varchar(255), "
417
+     . "$key3 varchar(255), $key4 varchar(255), $key5 varchar(255));" }
418
+    sub create_table1_type { "create table $table1 ($key1 $date_typename, $key2 $datetime_typename);" }
419
+    sub create_table1_highperformance { "create table $table1 ($key1 varchar(255), $key2 varchar(255), "
420
+      . "$key3 varchar(255), $key4 varchar(255), $key5 varchar(255), $key6 varchar(255), $key7 varchar(255));" }
421
+    sub create_table2 { "create table $table2 ($key1 varchar(255), $key3 varchar(255));" }
422
+    sub create_table2_2 { "create table $table2 ($key1 varchar(255), $key2 varchar(255), $key3 varchar(255))" }
423
+    sub create_table3 { "create table $table3 ($key1 varchar(255), $key2 varchar(255), $key3 varchar(255))" }
394 424
     sub create_table_reserved { 'create table "table" ("select" varchar(255), "update" varchar(255))' }
395 425
 }
396 426