You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Mamta A. Satoor (JIRA)" <ji...@apache.org> on 2007/05/31 19:02:16 UTC

[jira] Updated: (DERBY-2722) Set correct collation type and derivation for result character string types from CHAR, VARCHAR and XMLSERIALIZE functions

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

Mamta A. Satoor updated DERBY-2722:
-----------------------------------

    Attachment: DERBY2722_set_collation_for_xmlserialize_char_varchar_functions_v1_stat.txt
                DERBY2722_set_collation_for_xmlserialize_char_varchar_functions_v1_diff.txt

Committed attached patch DERBY2722_set_collation_for_xmlserialize_char_varchar_functions_v1_diff.txt with revision 543183. The commit comments are as follows

DERBY-2722
Committing changes which will make sure that we set the collation to current schema's collation for the return character string from XMLSERIALIZE. Don't have to make any changes for CHAR and VARCHAR functions because these functions gets translated into CAST by the parser and I have already checked in changes for the result of CAST to have the collation of current schema.


> Set correct collation type and derivation for result character string types from CHAR, VARCHAR and XMLSERIALIZE functions
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2722
>                 URL: https://issues.apache.org/jira/browse/DERBY-2722
>             Project: Derby
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 10.3.0.0
>            Reporter: Mamta A. Satoor
>            Assignee: Mamta A. Satoor
>             Fix For: 10.3.0.0
>
>         Attachments: DERBY2722_set_collation_for_xmlserialize_char_varchar_functions_v1_diff.txt, DERBY2722_set_collation_for_xmlserialize_char_varchar_functions_v1_stat.txt
>
>
> As per the wiki page http://wiki.apache.org/db-derby/BuiltInLanguageBasedOrderingDERBY-1478, assign correct collation type for results of CHAR, VARCHAR and XMLSERIALIZE functions. The rule as copied from the wiki page is as follows
> 6)CHAR, VARCHAR and XMLSERIALIZE functions do not look like they are defined in the SQL spec. Their behavior can be defined as similar to CAST ie, the result character string of CHAR/VARCHAR/XMLSERIALIZE will have the same collation as current schema's character set. The collation derivation will be implicit. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.