Menu

#31 failing numeric parsing for scinetific/engineering notation.

closed-works-for-me
nobody
None
5
2011-12-05
2009-07-02
No

There is a failure in a single test from test_numeric_parse.py
Distilled to this.

$ python -c 'from Sybase import numeric; numeric("3e5")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/Sybase.py", line 246, in _cslib_cb
raise Error(_fmt_client(msg), msg)
Sybase.Error: ('Layer: 2, Origin: 4\ncs_convert: cslib user api layer: common library error: The conversion/operation was stopped due to a syntax error in the source field.', <ClientMsgType object at 0x24cca60>)

Discussion

  • Robert Boehne

    Robert Boehne - 2011-12-05

    I could not reproduce this problem

    >>>
    >>> from Sybase import numeric
    >>> numeric("3e5")
    300000
    >>>

    so I am closing this ticket.

     
  • Robert Boehne

    Robert Boehne - 2011-12-05
    • status: open --> closed-works-for-me
     

Log in to post a comment.