Closed gabrielesilinic closed 2 years ago
Thank you for reporting the issue.
It seems the .NET driver (https://github.com/npgsql/npgsql) does not recognize dbname:
.
To work around this issue, use db:
or Database:
instead.
This will have to be fixed by preprocessing the connection string at https://github.com/peachpiecompiler/peachpie/blob/6205a6fc06f98d571bd4dc4b060be852a84da598/src/PDO/Peachpie.Library.PDO.PgSQL/PDOPgSQLDriver.cs#L27
so basically this function works okay in php but with peachpie doesn't since it throws the following exception
{"Keyword not supported: dbname (Parameter 'keyword')"} {$1}
, there is any workaround in order to use PDO with psql anyway while waiting for a fix? (i really don't know where to look into peachpie code to fix it myself, but mainly i don't know anything about nuget, sorry about that, i thought someone could fix it much faster than me anyway)example of how the connect string could look like when put together (since i know my way of putting it together looks messy)
Code:
edits: peachpie pdo pgsql version 1.0.14