Re: union of types in a different category

Поиск
Список
Период
Сортировка
От James Harper
Тема Re: union of types in a different category
Дата
Msg-id 6035A0D088A63A46850C3988ED045A4B6F3AFFA3@BITCOM1.int.sbss.com.au
обсуждение исходный текст
Ответ на union of types in a different category  (James Harper <james.harper@bendigoit.com.au>)
Список 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 по дате отправления:

Предыдущее
От: James Harper
Дата:
Сообщение: Re: union of types in a different category
Следующее
От: Janis Hamme
Дата:
Сообщение: Database creation: default permissions, owner of cloned elements