Nuxeo mailing list archives
[Nuxeo-tickets] [Nuxeo Repository] #1836: Add None to getSQLValue
in SQLDirectory.py
Nuxeo Repository
trac at nuxeo.com
Thu Apr 26 09:43:16 CEST 2007
#1836: Add None to getSQLValue in SQLDirectory.py
--------------------------+-------------------------------------------------
Reporter: jrosa | Owner: jrosa
Type: defect | Status: new
Priority: P2 | Milestone: CPS 3.4.5
Component: CPSDirectory | Version: TRUNK
Severity: normal | Keywords: sql directory null value
--------------------------+-------------------------------------------------
After a ValueError using an SQLDirectory and searching for the reason I
found the method getSQLValue
(https://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSDirectory/trunk/SQLDirectory.py#L125)
which quotes from python values to sql values. I thought this method needs
to deal with None types also, the lines to add would be:
{{{
elif value is None:
# XXX probably depends on SQL dialect
return 'NULL'
}}}
--
Ticket URL: <https://svn.nuxeo.org/trac/pub/ticket/1836>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.