blib/lib/blx/xsdsql/xsd_parser/type/complex.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
link_to_column
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package blx::xsdsql::xsd_parser::type::complex;
2 use strict; # use strict is for PBP
3 use Filter::Include;
4 include blx::xsdsql::include;
5 #line 6
6 use blx::xsdsql::ut::ut qw(nvl);
7  
8  
9 use base qw(blx::xsdsql::xsd_parser::type::base);
10  
11  
12 sub link_to_column {
13 my ($self,$c,%params)=@_;
14 my $ty=$self->get_attrs_value(qw(NAME));
15 my $table=$ty->get_attrs_value(qw(TABLE));
16 $self->_debug(__LINE__,'column ',$c->get_full_name,' ref to table ',$table->get_sql_name);
17 my $schema=$self->get_attrs_value(qw(SCHEMA));
18 $c->set_attrs_value(
19 TYPE => $schema->get_attrs_value(qw(ID_SQL_TYPE))
20 ,INTERNAL_REFERENCE => $table->get_attrs_value(qw(INTERNAL_REFERENCE))
21 ,PATH_REFERENCE => $table->get_path
22 ,TABLE_REFERENCE => $table
23 );
24 return $self;
25 }
26  
27 1;
28  
29 __END__