Changeset 830
- Timestamp:
- 03/17/10 13:24:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Onlyaddress.pm
r565 r830 13 13 my $sth = $base->db->prepare_cached( 14 14 sprintf( 15 q{select %s as k from %s where ikey not in (select okey from %s where attr = 'isMainAddress') %s order by %s}, 15 q{select %s.%s as k from %s 16 join "user" on %s."user" = "user".name %s 17 where %s.ikey not in (select okey from %s where attr = 'isMainAddress') %s 18 order by %s.%s 19 }, 20 $base->db->quote_identifier($class->object_table), 16 21 $base->db->quote_identifier($class->key_field), 17 22 $base->db->quote_identifier($class->object_table), 23 $base->db->quote_identifier($class->object_table), 24 ($base->{wexported} ? '' : 'and "user".exported = true'), 25 $base->db->quote_identifier($class->object_table), 18 26 $base->db->quote_identifier($class->object_table. '_attributes'), # attr 19 ($base->{wexported} ? '' : 'and exported = true'), 27 ($base->{wexported} ? '' : 'and ' . 28 $base->db->quote_identifier($class->object_table) . '.exported = true'), 29 $base->db->quote_identifier($class->object_table), 20 30 $base->db->quote_identifier($class->key_field), 21 31 )
Note: See TracChangeset
for help on using the changeset viewer.