1

ネストされたデータセットに perl モジュール DBIx::Tree::NestedSet を使用しています。デフォルトのテーブル名を使用すると、正常に動作します。一方、別の列名でテーブルを読みたい場合は失敗します。

my $tree = DBIx::Tree::NestedSet->new(
table_name=>$tree_table,
left_column_name=>'leftt',
right_column_name=>'rightt',                                    
dbh=>$dbh,
db_type=>$db_type
);

my $childrens = $tree->get_self_and_children_flat(id=>$root_id,depth=>1);
print "childrens: @$childrens\n"; #empty array....
4

0 に答える 0