Skip to content

identifier enquoting not implemented (JDBC 4.3) #2450

Open
@peterhalicky

Description

@peterhalicky

Driver version

12.6.2.jre11 (and any older)

Problem description

Statement.enquoteIdentifier() is a JDBC 4.3 method that enquotes an identifier. Class SQLServerStatement does not implement this method, thus default method from java.sql.Statement is used. This method, however, does not correctly handle identifiers that are already enquoted using square brackets. [table] is a valid identifier, but it gets enquoted to "[table]" which isn't.

Expected behavior

enquoteIdentifier for [table] should return either [table] or "table".

Actual behavior

enquoteIdentifier for [table] returns "[table]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogThe topic in question has been recognized and added to development backlogEnhancementAn enhancement to the driver. Lower priority than bugs.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions