Re: union of types in a different category - Mailing list pgsql-general

From James Harper
Subject Re: union of types in a different category
Date
Msg-id 6035A0D088A63A46850C3988ED045A4B6F3AFFA3@BITCOM1.int.sbss.com.au
Whole thread Raw
In response to union of types in a different category  (James Harper <james.harper@bendigoit.com.au>)
List pgsql-general
>
> I prefer the explicit approach used by Postgres - MYSQL is simpler, but I'd say
> simplistic in this area. While it can automate the cating of tpes/catories of
> variable, it doesn't always do it the way I want - so I need to be explicit
> anyway.
>
> In your second use case, which fails - do you want numerics cast to strings or
> vice versa? It can make difference, so to get what you want rather than
> otherwise, I prefer to be explicit. in either Postgres or MySQL.
>

Without anything explicit, I would want them cast to text (eg in the direction of the implicit cast for the types
involved).The problem is that I don't necessarily have control of the queries - they were written for MSSQL. 

James


pgsql-general by date:

Previous
From: James Harper
Date:
Subject: Re: union of types in a different category
Next
From: Janis Hamme
Date:
Subject: Database creation: default permissions, owner of cloned elements