Skip to content

Driver cuts out the question mark from columns labels (aliases) #2535

@DmitriyGod

Description

@DmitriyGod

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

Metadata

Metadata

Labels

Under InvestigationUsed for issues under investigationWaiting for ResponseWaiting for a reply from the original poster, or affiliated party

Type

No type

Projects

Status

Closed Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions