mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Added test for DateTime object allocation bug.
This commit is contained in:
parent
07892b29a6
commit
1ed16c8265
10
tests/bugX000.py
Normal file
10
tests/bugX000.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import psycopg2
|
||||
import time
|
||||
|
||||
d1 = psycopg2.Date(2002,12,25)
|
||||
d2 = psycopg2.DateFromTicks(time.mktime((2002,12,25,0,0,0,0,0,0)))
|
||||
t1 = psycopg2.Time(13,45,30)
|
||||
t2 = psycopg2.TimeFromTicks(time.mktime((2001,1,1,13,45,30,0,0,0)))
|
||||
t1 = psycopg2.Timestamp(2002,12,25,13,45,30)
|
||||
t2 = psycopg2.TimestampFromTicks( time.mktime((2002,12,25,13,45,30,0,0,0)))
|
||||
|
Loading…
Reference in New Issue
Block a user