[ 
https://issues.apache.org/jira/browse/CALCITE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde updated CALCITE-111:
--------------------------------
    Description: 
Support the CONVERT function, to convert strings from one character set to 
another.

CONVERT is defined in SQL:2011 as a feature called {{<character 
transliteration>}}. Here is an example:

{code}
SELECT * FROM emp WHERE CONVERT(name USING UTF16) = u&'\82f1\56fd'
{code}

The [MySQL 
site|https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_convert]
 has other examples.

{noformat}
---------------- Imported from GitHub ----------------
Url: https://github.com/julianhyde/optiq/issues/111
Created by: [julianhyde|https://github.com/julianhyde]
Labels: enhancement, 
Created at: Tue Jan 14 03:40:53 CET 2014
State: open
{noformat}

  was:
Support the CONVERT function, to convert strings from one character set to 
another.

CONVERT is defined in SQL:2011 as a feature called &lt;character 
transliteration&gt;. Here is an example:

```sql
SELECT * FROM emp WHERE CONVERT(name USING UTF16) = u&'\82f1\56fd'
```

The <a href="http://dev.mysql.com/doc/refman/5.0/en/charset-convert.html";>MySQL 
site</a> has other examples.

---------------- Imported from GitHub ----------------
Url: https://github.com/julianhyde/optiq/issues/111
Created by: [julianhyde|https://github.com/julianhyde]
Labels: enhancement, 
Created at: Tue Jan 14 03:40:53 CET 2014
State: open



> Support CONVERT function, for changing character sets
> -----------------------------------------------------
>
>                 Key: CALCITE-111
>                 URL: https://issues.apache.org/jira/browse/CALCITE-111
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: GitHub Import
>            Assignee: ZheHu
>            Priority: Major
>              Labels: github-import, pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Support the CONVERT function, to convert strings from one character set to 
> another.
> CONVERT is defined in SQL:2011 as a feature called {{<character 
> transliteration>}}. Here is an example:
> {code}
> SELECT * FROM emp WHERE CONVERT(name USING UTF16) = u&'\82f1\56fd'
> {code}
> The [MySQL 
> site|https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_convert]
>  has other examples.
> {noformat}
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/julianhyde/optiq/issues/111
> Created by: [julianhyde|https://github.com/julianhyde]
> Labels: enhancement, 
> Created at: Tue Jan 14 03:40:53 CET 2014
> State: open
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to