Revision 62750c33
Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt
SL/DB/Helper/CustomVariables.pm | ||
---|---|---|
12 | 12 |
my $caller_package = caller; |
13 | 13 |
|
14 | 14 |
# TODO: if module is empty, module overloading needs to take effect |
15 |
# certain stuff may have more than one overload, odr even more than one type
|
|
15 |
# certain stuff may have more than one overload, or even more than one type |
|
16 | 16 |
defined $caller_package or croak 'need to be included from a caller reference'; |
17 | 17 |
|
18 | 18 |
$params{module} ||= _calc_modules_from_overloads(%params) if $params{overloads}; |
... | ... | |
327 | 327 |
# remove rose aliases. query builder sadly is not reentrant, and will reuse the same aliases. :( |
328 | 328 |
$query{$key} =~ s{\bt\d+(?:\.)?\b}{}g; |
329 | 329 |
|
330 |
# manually inline the values. again, rose doen't know how to handly bind params in subqueries :(
|
|
330 |
# manually inline the values. again, rose doen't know how to handle bind params in subqueries :(
|
|
331 | 331 |
$query{$key} =~ s{\?}{ $config->dbh->quote(shift @{ $bind_vals{$key} }) }xeg; |
332 | 332 |
|
333 | 333 |
$query{$key} =~ s{\n}{ }g; |
... | ... | |
358 | 358 |
|
359 | 359 |
=head1 NAME |
360 | 360 |
|
361 |
SL::DB::Helper::CustomVariables - Mixin to provide custom variables relations
|
|
361 |
SL::DB::Helper::CustomVariables - Mixin to provide custom variable relations |
|
362 | 362 |
|
363 | 363 |
=head1 SYNOPSIS |
364 | 364 |
|
Auch abrufbar als: Unified diff
Typos in Doku