Обсуждение: implicit type conversions

Поиск
Список
Период
Сортировка

implicit type conversions

От
"Coby Beck"
Дата:
Hi,

I have a Zope app with a postgres database.  Due to boring technical
details, I am trying to port it from version 7.2.1 to 7.3.2.  This is an
inherited application that is still under active development.

It seems that the older version was doing a lot of type conversions behind
the scenes because bulding the database with the new version results in a
scad of type errors.  For example, many functions declared on (INTEGER) need
to be changed to (BIGINT), type (TEXT) is no longer good enough when it is
actually an integer being passed, things like this.

Is there some kind of global setting or configuration I can modify rather
than patching things all over the place?  I have mixed feelings on these
kinds of behind the scenes "favours" but for now I would just like it to
work...

Thanks,

Coby Beck



Re: implicit type conversions

От
Andrew Sullivan
Дата:
On Tue, Jun 03, 2003 at 12:14:46PM +1000, Coby Beck wrote:
> Is there some kind of global setting or configuration I can modify rather
> than patching things all over the place?  I have mixed feelings on these
> kinds of behind the scenes "favours" but for now I would just like it to
> work...

Not really.  This is one of the big-ish changes in 7.3.x, and you'll
have to live with the pain, I'm afraid.  There has been a _lot_ of
discussion around this topic in the past year.  Have a look in the
archives.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110