Обсуждение: PGInterval setMinutes unrecognize ???

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

PGInterval setMinutes unrecognize ???

От
andy petrella
Дата:
Hi everybody,

Someone can tell me why I get that error :

     symbol  : method setMinutes(int)
     location: class org.postgresql.util.PGInterval
                 duree.setMinutes((int)minutes);
     1 error

when :

     PGInterval duree = new PGInterval();   // passed
     duree.setMinutes((int)minutes);           //buzzzzzzzzzzz
           


I can create new PGInterval but I can use its methods... can't understand and make me mad !

thx

andy

Re: PGInterval setMinutes unrecognize ???

От
Dave Cramer
Дата:
What is the error? It should work.

Dave
On 19-Oct-05, at 7:32 PM, andy petrella wrote:

> Hi everybody,
>
> Someone can tell me why I get that error :
>
>      symbol  : method setMinutes(int)
>      location: class org.postgresql.util.PGInterval
>                  duree.setMinutes((int)minutes);
>      1 error
>
> when :
>
>      PGInterval duree = new PGInterval();   // passed
>      duree.setMinutes((int)minutes);           //buzzzzzzzzzzz
>
>
>
> I can create new PGInterval but I can use its methods... can't
> understand and make me mad !
>
> thx
>
> andy


Re: PGInterval setMinutes unrecognize ???

От
Oliver Jowett
Дата:
andy petrella wrote:

> Someone can tell me why I get that error :
>
>      symbol  : method setMinutes(int)
>      location: class org.postgresql.util.PGInterval
>                  duree.setMinutes((int)minutes);
>      1 error

Check that you have the right driver in your compilation classpath; that
method was only introduced recently, perhaps you are compiling against
an older driver.

-O

Re: PGInterval setMinutes unrecognize ???

От
andy petrella
Дата:
Thx,
It's what I guest but which jdbc may I use ?

'cause right now I'm using those one


8.0-313 JDBC 2
8.0-313 JDBC 3

Thx u all.

andy

2005/10/20, Oliver Jowett <oliver@opencloud.com>:
andy petrella wrote:

> Someone can tell me why I get that error :
>
>      symbol  : method setMinutes(int)
>      location: class org.postgresql.util.PGInterval
>                  duree.setMinutes ((int)minutes);
>      1 error

Check that you have the right driver in your compilation classpath; that
method was only introduced recently, perhaps you are compiling against
an older driver.

-O



--
/**\_____/**\_____/**\_____/**\_____/**\
]                        Signature :
]                    Andy Petrella
]             Rue dessous l'église, 17
]                      4450 Slins                              
]       mail: andy.petrella@gmail.com
]            <licencié en math, info>
]             dea S.I.G. (2005-2006)
\**/"""""""\**/"""""""\**/"""""""\**/"""""""\**/