equality index on gYearMonth throws Exception

View: New views
3 Messages — Rating Filter:   Alert me  

equality index on gYearMonth throws Exception

by Matt Magoffin-4 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hello, I'm trying to add an index on an xs:gYearMonth attribute, but when
I try to add the index, BDBXML is throwing the following exception:

Caused by: com.sleepycat.dbxml.XmlException: Error: Unknown index
specification, 'node-attribute-equality-none', for node 'lead-month'.,
errcode = UNKNOWN_INDEX
        at
com.sleepycat.dbxml.dbxml_javaJNI.XmlIndexSpecification_addIndex__SWIG_1(Native
Method)
        at
com.sleepycat.dbxml.XmlIndexSpecification.addIndex(XmlIndexSpecification.java:49)

I'm calling the addIndex method like

addIndex("","lead-month","node-attribute-equality-gYearMonth")

but BDBXML seems to convert the gYearMonth to "none"?

This is the only index definition I've had problems with, I have many
other indices defined successfully. Any ideas how to define a gYearMonth
attribute index?

-- m@


------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe@...


Re: equality index on gYearMonth throws Exception

by George Feinberg-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message


Matt,

Try using "yearMonth"

It appears that the documentation and code are out of sync.

Regards,

George

On Jul 14, 2006, at 5:52 PM, Matt Magoffin wrote:

> Hello, I'm trying to add an index on an xs:gYearMonth attribute,  
> but when
> I try to add the index, BDBXML is throwing the following exception:
>
> Caused by: com.sleepycat.dbxml.XmlException: Error: Unknown index
> specification, 'node-attribute-equality-none', for node 'lead-month'.,
> errcode = UNKNOWN_INDEX
>         at
> com.sleepycat.dbxml.dbxml_javaJNI.XmlIndexSpecification_addIndex__SWIG
> _1(Native
> Method)
>         at
> com.sleepycat.dbxml.XmlIndexSpecification.addIndex
> (XmlIndexSpecification.java:49)
>
> I'm calling the addIndex method like
>
> addIndex("","lead-month","node-attribute-equality-gYearMonth")
>
> but BDBXML seems to convert the gYearMonth to "none"?
>
> This is the only index definition I've had problems with, I have many
> other indices defined successfully. Any ideas how to define a  
> gYearMonth
> attribute index?
>
> -- m@
>
>
> ------------------------------------------
> To remove yourself from this list, send an
> email to xml-unsubscribe@...
>



------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe@...


Re: equality index on gYearMonth throws Exception

by Matt Magoffin-4 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Thank you, that did indeed work.

-- m@


> Matt,
>
> Try using "yearMonth"
>
> It appears that the documentation and code are out of sync.
>
> Regards,
>
> George
>
> On Jul 14, 2006, at 5:52 PM, Matt Magoffin wrote:
>
>> Hello, I'm trying to add an index on an xs:gYearMonth attribute,
>> but when
>> I try to add the index, BDBXML is throwing the following exception:
>>
>> Caused by: com.sleepycat.dbxml.XmlException: Error: Unknown index
>> specification, 'node-attribute-equality-none', for node 'lead-month'.,
>> errcode = UNKNOWN_INDEX
>>         at
>> com.sleepycat.dbxml.dbxml_javaJNI.XmlIndexSpecification_addIndex__SWIG
>> _1(Native
>> Method)
>>         at
>> com.sleepycat.dbxml.XmlIndexSpecification.addIndex
>> (XmlIndexSpecification.java:49)
>>
>> I'm calling the addIndex method like
>>
>> addIndex("","lead-month","node-attribute-equality-gYearMonth")
>>
>> but BDBXML seems to convert the gYearMonth to "none"?
>>
>> This is the only index definition I've had problems with, I have many
>> other indices defined successfully. Any ideas how to define a
>> gYearMonth
>> attribute index?



------------------------------------------
To remove yourself from this list, send an
email to xml-unsubscribe@...