Skip to content

Commit

Permalink
Issue #639: added a code comment, tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Nov 16, 2020
1 parent 8ba7652 commit 98c9f41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Kernel/System/DB/mysql.pm
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,8 @@ sub Insert {
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
my $DateTimeObject = $Kernel::OM->Create('Kernel::System::DateTime');

my $SQL = '';
my @Keys = ();
my @Values = ();
my $SQL = '';
my ( @Keys, @Values );
for my $Tag (@Param) {
if ( $Tag->{Tag} eq 'Insert' && $Tag->{TagType} eq 'Start' ) {
if ( $ConfigObject->Get('Database::ShellOutput') ) {
Expand All @@ -805,6 +804,8 @@ sub Insert {
$SQL .= $Self->{'DB::Comment'}
. "----------------------------------------------------------\n";
}
# TODO: might be safer to call $Self->QuoteIndetifier() for quoting the table.
# but beware that $Tag->{Table} might already be quoted.
$SQL .= "INSERT INTO $Tag->{Table} ";
}
if ( $Tag->{Tag} eq 'Data' && $Tag->{TagType} eq 'Start' ) {
Expand Down

0 comments on commit 98c9f41

Please sign in to comment.