Re: getting postgres to emulate mysql/sqlserver bit datatype
В списке pgsql-general по дате отправления:
| От | Anton Melser |
|---|---|
| Тема | Re: getting postgres to emulate mysql/sqlserver bit datatype |
| Дата | |
| Msg-id | 92d3a4950702131345p18bfcc33qbf0578238f793916@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: getting postgres to emulate mysql/sqlserver bit datatype (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On 13/02/07, Tom Lane <tgl@sss.pgh.pa.us> wrote: > "Anton Melser" <melser.anton@gmail.com> writes: > > ERROR: operator is not unique: boolean = integer > > > I get this whether castcontext is 'a' or 'i'. > > If you make both cast directions the same priority then the system has > no basis for choosing bool = bool over int = int or vice versa. Try > making one direction 'i' and the other not. I'm not sure which one > ought to be 'i', really --- it depends a lot on the details of the > queries you are trying to make work. That did the trick. Both seem to work, so for me that's great. Thanks heaps. I may end up trying to get them to change it from 1 and 0 to '1' and '0', as sql server accepts it, and if sql server accepts it, I would be surprised if mysql doesn't... Thanks again, Anton
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера