Bug 76952 - [MAINTAINER] databases/py-sqlobject: [PATCH] fix DateTime bug
Summary: [MAINTAINER] databases/py-sqlobject: [PATCH] fix DateTime bug
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 11:30 UTC by Choe, Cheng-Dae
Modified: 2005-02-19 18:19 UTC (History)
0 users

See Also:


Attachments
file.diff (985 bytes, patch)
2005-02-01 11:30 UTC, Choe, Cheng-Dae
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Choe, Cheng-Dae 2005-02-01 11:30:23 UTC
      - sqlobject v0.6.1 has bug in usage DateTime column. Ths pr fix this problem. This patch was applied in repository but It's wonder when bugfix will be released. I write this pr because it's a serious problem using sqlobject.
      - see http://sourceforge.net/mailarchive/message.php?msg_id=10704546

How-To-Repeat: - install databases/py-sqloject
- try code below
import psycopg
from sqlobject import *

conn = connectionForURI('postgres://%s@/%s' % ('whitekid', 'whitekid') )

class Test(SQLObject):
    _connection = conn

    timestamp = DateTimeCol( default=sqlbuilder.func.NOW() )

try: Test.createTable()
except psycopg.ProgrammingError, e: pass

Test()
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-02-19 18:18:43 UTC
State Changed
From-To: open->closed


Committed, thanks!