You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library psycopg (v3.x) uses "dbname" instead of "database" as psycopg2 to establish the connection, therefore when using the Connect To Database keyword the following error is raised: ProgrammingError: invalid connection option "database"
elif module_name.startswith("psycopg"):
self.config.set_default_port(5432)
self._dbconnection = dbmodule.connect(
database=self.config.get("database"), <---- This is not valid for psycopg but for psycopg2
user=self.config.get("username"),
password=self.config.get("password"),
host=self.config.get("host"),
port=self.config.get("port"),
)
The text was updated successfully, but these errors were encountered:
dlopezpastoriza
changed the title
ProgrammingError: invalid connection option "database"
RPA.Database : ProgrammingError: invalid connection option "database"
Dec 2, 2024
The library psycopg (v3.x) uses "dbname" instead of "database" as psycopg2 to establish the connection, therefore when using the Connect To Database keyword the following error is raised: ProgrammingError: invalid connection option "database"
https://github.com/robocorp/rpaframework/blame/1a357088f96ecad05c9098ff5442c82aaaff1cac/packages/main/src/RPA/Database.py#L286
The text was updated successfully, but these errors were encountered: