Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
pgsql dsn header length fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
denphi committed Jun 2, 2020
1 parent d797398 commit ccb0623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Driver/Pgsql.php
Expand Up @@ -54,7 +54,7 @@ public function __construct($options)
}
}

if (substr($options['dsn'], 0, 7) != 'pgsql:')
if (substr($options['dsn'], 0, 6) != 'pgsql:')
{
throw new ConnectionFailedException('Postgres DSN for PDO connection does not appear to be valid.', 500);
}
Expand Down

0 comments on commit ccb0623

Please sign in to comment.