[DB-SIG] pb with Datetime

Denis Cartier Millon Denis.CM@Wanadoo.fr
Fri, 13 Sep 2002 09:27:27 +0200


--------------050504080309040206010302
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I try to get datetime from sybase with python and a connection ODBC:
with the script "select * from Atable"
and cursor.execute()
(1458, <DateTime object for '2000-12-26 11:04:00.00' at 2148670>, 4, 
None, 1.0)

why ?

when i want to insert this in a database Postgresql : i can't...

is there a solution?





--------------050504080309040206010302
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
I try to get datetime from sybase with python and a connection ODBC:<br>
with the script "select * from Atable"<br>
and cursor.execute()<br>
(1458,<big><big><b> &lt;DateTime object for '2000-12-26 11:04:00.00' at 2148670&gt;</b></big></big>,
4, None, 1.0)<br>
<br>
why ?<br>
<br>
when i want to insert this in a database Postgresql : i can't...<br>
<br>
is there a solution?<br>
<br>
<br>
<br>
<br>
</body>
</html>

--------------050504080309040206010302--