Skip to content

Commit

Permalink
Fix port been missed construct and update release
Browse files Browse the repository at this point in the history
  • Loading branch information
tophitter committed Jul 31, 2023
1 parent 7d5250f commit a2032ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Database Helper",
"minimum-stability": "stable",
"license": "MIT",
"version": "1.0.7",
"version": "1.0.8",
"authors": [
{
"name": "jason",
Expand Down
2 changes: 1 addition & 1 deletion src/Database/PDOAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function __construct($host, $port, $user, $pass, $dbName, $fName = "", $o
// try catch block start
try {
// use native pdo class and connect
parent::__construct($db_type.':host=' . $this->Host . ';dbname=' . $this->Database, $this->User, $this->Password, $this->Options);
parent::__construct($db_type.':host=' . $this->Host . ';port='.$this->Port.';dbname=' . $this->Database, $this->User, $this->Password, $this->Options);

// set pdo error mode silent
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
Expand Down

0 comments on commit a2032ed

Please sign in to comment.