Skip to content

Commit

Permalink
Merge pull request #86 from lisaens/char-conv
Browse files Browse the repository at this point in the history
Fixed a couple syntax errors
  • Loading branch information
lisaens authored Jun 25, 2018
2 parents 70c1c6a + 42c26da commit b150bce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/GRNOC/NetSage/ResourceDB/DataService/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ sub upgrade_to_0_1_0 {
my $self = shift;
my $db = shift;
my $version = shift;
my $err = undef;

my @queries = (
"SET FOREIGN_KEY_CHECKS=0;",
Expand Down Expand Up @@ -295,7 +294,9 @@ sub upgrade_to_0_1_0 {
"SET FOREIGN_KEY_CHECKS=1;"
);

foreach $query (@queries) {
my $err = undef;
my $ok = undef;
foreach my $query (@queries) {
$ok = $db->do( $query );
if (!$ok) {
$err = $DBI::errstr;
Expand Down

0 comments on commit b150bce

Please sign in to comment.