Skip to content

Can't connection to the server with disabled prepare statements #185

@artemklevtsov

Description

@artemklevtsov

Hi,

I can't connect to the server with following command:

con <- DBI::dbConnect(
    drv = RPostgres::Postgres(),
    host = "10.10.0.1",
    port = 5432,
    dbname = "postgres",
    user = "user",
    password = "1368798451"
)
#> Error in result_create(conn@ptr, statement) :
#>   Failed to retrieve query result metadata: ERROR:  unnamed prepared statement does not exist

With odbc package the connection works only with UseServerSidePrepare = No option in .odbc.ini. RPostgreSQL works without additional manipulations.

Server info:

PostgreSQL 9.3.20 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit
packageVersion("RPostgres")
#> [1] '1.1.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions