Skip to content

Why doesn't DuckDBConnection.duplicate return a DuckDBConnection? #434

@blacelle

Description

@blacelle

I consider DuckDBConnection.duplicate():

    public Connection duplicate() throws SQLException {
        checkOpen();
        connRefLock.lock();
        try {
            checkOpen();
            return new DuckDBConnection(DuckDBNative.duckdb_jdbc_connect(connRef), url, readOnly, sessionInitSQL,
                                        autoCommit);
        } finally {
            connRefLock.unlock();
        }
    }

Why does it returns a Connection instead of a DuckDBConnection?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions