Driver version
latest
SQL Server version
mcr.microsoft.com/mssql/server:2022-latest
Client Operating System
any
JAVA/JVM version
any
Table schema
no
Problem description
Driver cuts out the question mark from columns labels (aliases):
var stmt = connection.prepareStatement(
"""
select 1 as "any questions ???"
""");
var metaData = stmt.getMetaData();
var actual = metaData.getColumnLabel(1);
var expected = "any questions ???";
Assertions.assertEquals(expected, actual);
out:
Expected :any questions ???
Actual :any questions nullnullnull
Expected behavior
Driver must keep question marks
Actual behavior
Driver cuts out the question mark from columns labels (aliases).
Error message/stack trace
Any other details that can be helpful
All other drivers keeps question mark in labels.
JDBC trace logs
Driver version
latest
SQL Server version
mcr.microsoft.com/mssql/server:2022-latest
Client Operating System
any
JAVA/JVM version
any
Table schema
no
Problem description
Driver cuts out the question mark from columns labels (aliases):
out:
Expected :any questions ???
Actual :any questions nullnullnull
Expected behavior
Driver must keep question marks
Actual behavior
Driver cuts out the question mark from columns labels (aliases).
Error message/stack trace
Any other details that can be helpful
All other drivers keeps question mark in labels.
JDBC trace logs