[
https://issues.apache.org/jira/browse/CALCITE-6791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17915755#comment-17915755
]
Sree Harsha Ramanavarapu commented on CALCITE-6791:
---------------------------------------------------
Shouldn't we fix this in this MSSQL dialect? That way we won't need a new
function.
> Search pattern during matching in REPLACE function should be case insensitive
> in MSSQL
> --------------------------------------------------------------------------------------
>
> Key: CALCITE-6791
> URL: https://issues.apache.org/jira/browse/CALCITE-6791
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: ZheHu
> Assignee: ZheHu
> Priority: Major
>
> REPLACE function in Microsoft SQL Server is case insensitive when matching
> the search pattern.
> Result for the following query is "ciciaociaoo"
> {code:java}
> replace('ciAao', 'a', 'ciao')
> {code}
> Same query in Oracle or PostgreSQL results in "ciAciaoo".
> For this case, we should add a function(call it REPLACE_MSSQL) and enable it
> when fun=mssql.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)