[teiid-issues] [JBoss JIRA] (TEIID-3895) OData - metadata returns primary key with attribute "Nullable=true"

Steven Hawkins (JIRA) issues at jboss.org
Tue Jan 12 09:39:00 EST 2016


     [ https://issues.jboss.org/browse/TEIID-3895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-3895.
-----------------------------------
    Fix Version/s: 8.13
                   8.12.4
       Resolution: Done


Merged the pull request.  Thanks Juraj.

> OData - metadata returns primary key with attribute "Nullable=true"
> -------------------------------------------------------------------
>
>                 Key: TEIID-3895
>                 URL: https://issues.jboss.org/browse/TEIID-3895
>             Project: Teiid
>          Issue Type: Bug
>          Components: OData
>    Affects Versions: 8.12.3
>            Reporter: Juraj Duráni
>            Assignee: Juraj Duráni
>             Fix For: 8.13, 8.12.4
>
>
> If column's name in source (PHYSICAL) model has different name than one in the source (case sensitive) then attribute "Nullable" is set to true.
> {code:xml}
> <vdb name="test" version="1">
>     <model name="Source" type="PHYSICAL">
>         <source name="rs" connection-jndi-name="java:/Redshift" translator-name="postgresql"/>
>         <metadata type="DDL">
>             <![CDATA[create foreign table SmallB (
>                 IntKey integer PRIMARY KEY OPTIONS(NAMEINSOURCE 'intkey', NATIVE_TYPE 'int4')) OPTIONS(NAMEINSOURCE 'smalla');
>             ]]>
>         </metadata>
>     </model>
> </vdb>
> {code}
> result:
> {code:xml}
> <edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0">
>   <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0">
>     <Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="Source">
>       <EntityType Name="SmallB">
>         <Key>
>           <PropertyRef Name="IntKey"/>
>         </Key>
>         <Property Name="IntKey" Type="Edm.Int32" Nullable="true"/>
>       </EntityType>
>       <EntityContainer Name="Source" m:IsDefaultEntityContainer="false">
>         <EntitySet Name="SmallB" EntityType="Source.SmallB"/>
>       </EntityContainer>
>     </Schema>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the teiid-issues mailing list