Skip to content

Commit

Permalink
work around DBD::SQLite returning quoted primary keys :/
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed May 14, 2014
1 parent bc2ff98 commit b33fe17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DBR/Config/ScanDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sub scan_pkeys {
next unless $row->{PK_NAME} eq 'PRIMARY KEY';
my $table = $row->{TABLE_NAME} or return $self->_error('no TABLE_NAME!');
my $field = $row->{COLUMN_NAME} or return $self->_error('no COLUMN_NAME!');
$field =~ s/"//g; # DBD::SQLite idiocy returns quoted pkeys
$map{$table}->{$field} = 1;
}

Expand Down

0 comments on commit b33fe17

Please sign in to comment.