identifier enquoting not implemented (JDBC 4.3) #2450
Labels
Backlog
The topic in question has been recognized and added to development backlog
Enhancement
An enhancement to the driver. Lower priority than bugs.
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 fromjava.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]"
The text was updated successfully, but these errors were encountered: