Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-369

CUBRID python driver does not convert None object to null

    Details

      Description

      You can test on this table:

      {code}
      create table tst (a int auto_increment);{code}

      Let's assume you want to execute the prepared query:

      {code}
      insert into tst values{code}

      And you give the arguments as (None,)

      It gives error that it cannot coerce None to field type.

      {code}
      insert into tst values(null){code}

      should be executed in this case.

      1. APIS-369_FIX01.creview
        32 kB
        李金虎
      2. test_CUBRIDdb_bind_None.py
        2 kB
        李金虎

        Activity

        Hide
        jinhu 李金虎 added a comment -

        Deal with None when binding None object.
        Sending CUBRIDdb/cursors.py
        Sending python_cubrid.c
        Committed revision 946.
        Fixed in RB-8.4.1

        Merge to RB-8.4.3
        Merge to RB-9.0.0
        Merge to trunk.

        Show
        jinhu 李金虎 added a comment - Deal with None when binding None object. Sending CUBRIDdb/cursors.py Sending python_cubrid.c Committed revision 946. Fixed in RB-8.4.1 Merge to RB-8.4.3 Merge to RB-9.0.0 Merge to trunk.
        Show
        cn14130 欧明宝[Bom Owen] added a comment - add test scenario for this issue: 1. RB-9.1.0 http://svn.cubrid.org/cubridapis/python/branches/RB-9.1.0/tests2/python/_07_execute/execute_bind_None.py 2. RB-8.4.1 http://svn.cubrid.org/cubridapis/python/branches/RB-8.4.1/tests2/python/_07_execute/execute_bind_None.py 3. RB-8.4.3 http://svn.cubrid.org/cubridapis/python/branches/RB-8.4.3/tests2/python/_07_execute/execute_bind_None.py
        Hide
        cn14130 欧明宝[Bom Owen] added a comment -

        Test Build: 9.1.0.0203
        Test OS: Windows 7 x86, Windows7 x64 and Linux x64
        python driver: 9.1.0.0001
        Test Result: pass
        RB-8.4.1, RB-8.4.3 will be validated by daily qa test

        Show
        cn14130 欧明宝[Bom Owen] added a comment - Test Build: 9.1.0.0203 Test OS: Windows 7 x86, Windows7 x64 and Linux x64 python driver: 9.1.0.0001 Test Result: pass RB-8.4.1, RB-8.4.3 will be validated by daily qa test

          People

          • Assignee:
            jinhu 李金虎
            Reporter:
            ovidiu.veliscu Veliscu Ovidiu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: