Ticket T706742
Visible to All Users

XPO postgres and GUID problem

created 6 years ago

Dear support

I use XPO in my postgres database application.

Keys of dataobjects are GUID.

Today, I have problem with foreign key (screenshot).

I think, reason of problem is upgrade devexpress to version 18.

Old version used datatype BPCHAR(36) for GUID columns
New version uses datatype UUID.

Is there any possibility how to set XPO behavior as old version and solve the problem on the screen?

Thank you

Answers approved by DevExpress Support

created 6 years ago (modified 6 years ago)

Hello Michal,

XPO behavior has been changed, since we supported the UUID type in the PostgreSQL provider. To revert to the previous behavior, set the PostgreSqlConnectionProvider.GlobalUseLegacyGuidSupport property to True. For details, see BC4417 - Default mapping of a class property type to a database column type is changed in PostgreSQL and MySQL providers.

    Comments (1)
    MT MT
    Michal Taušek 6 years ago

      Great! It works
      Thank you

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.