Skip to content

Commit

Permalink
set modes again
Browse files Browse the repository at this point in the history
  • Loading branch information
ofbeaton committed Aug 5, 2016
1 parent c17d9a2 commit 82234f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/PingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ protected function connect(InputInterface $input, OutputInterface $output)
return false;
}

// make sure our modes are set
$this->dbh->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$this->dbh->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);

$this->writeReply('connected', $input, $output);
return true;
}//end connect()
Expand Down

0 comments on commit 82234f4

Please sign in to comment.