Re: Python Interface

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Python Interface
Дата
Msg-id 20050210213702.GA72513@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Python Interface  (James Thompson <jamest@ajrs.com>)
Список pgsql-general
On Thu, Feb 10, 2005 at 01:29:42PM -0600, James Thompson wrote:

> Though if IIRC it does round timestamps which can burn a person at times :)
> I don't have a test case to verify if my memory is correct about this though.

Actually, I think it's just that mxDateTime defaults to displaying
times as HH:MM:SS.ss, but the extra precision does appear to be there:

In psql:

SELECT tm FROM foo;
       tm
-----------------
 14:32:41.219443

In Python:

curs.execute('SELECT tm FROM foo')
row = curs.dictfetchone()
print row['tm']
14:32:41.21
print row['tm'].second
41.219443

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

В списке pgsql-general по дате отправления:

Предыдущее
От: Christoph Pingel
Дата:
Сообщение: Re: no self-joins in views? - works now!
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Functions with more than 32 parameters